{{Extend "db/index"}} {{Block "title"}}{{"数据"|T}}: {{Stored.table}} - {{Super}}{{/Block}} {{Block "breadcrumb"}} {{Super}} {{- $dbName := Stored.String `dbName` -}} {{- $table := Stored.String `table` -}}
  • {{"数据库"|T}}: {{$dbName}}
  • {{"表"|T}}: {{$table}}
  • {{"数据"|T}}
  • {{/Block}} {{Block "head"}} {{Super}} {{/Block}} {{Block "main"}}
    {{$accountId := (Formx "accountId").Uint64}} {{- if gt $accountId 0 -}} {{- else -}} {{- end -}}
    {{$cols := FormValues "columns[col][]"}} {{range $key,$val := FormValues "columns[fun][]"}}
    {{$col := IndexStrSlice $cols $key}}
    {{end}}
    {{$cols := FormValues "where[col][]"}} {{$operators := FormValues "where[op][]"}} {{range $key,$val := FormValues "where[val][]"}} {{$col := IndexStrSlice $cols $key}} {{$ope := IndexStrSlice $operators $key}}
    {{end}}
    {{$descs := FormValues "desc[]"}} {{range $key,$val := FormValues "order[]"}} {{$desc := IndexStrSlice $descs $key}}
    {{end}}
    {{Include "db/mysql/results"}}
    {{range $colIndex, $colName := Stored.columns}} {{$field := index Stored.fields $colName}} {{end}} {{range $k,$v := Stored.values}} {{range $colIndex, $colName := Stored.columns}} {{$field := index Stored.fields $colName}} {{end}} {{end}}
    {{$colName}}
    {{- $value := (index $v $colName).String -}} {{- if $field -}} {{- $field.Format $value -}} {{- else -}} {{- $value -}} {{- end -}}
    {{"已选中"|T}} (0) {{T "共有%d项" Stored.total}}
    {{$editURL := dbMgrURL `createData` Stored.dbName Stored.table}}
    {{Stored.pagination.Render}}
    {{/Block}} {{Block "footer"}} {{Super}} {{Modal "__TMPL__/db/mysql/copy_table.yaml"}} {{Modal "__TMPL__/db/mysql/move_table.yaml"}} {{/Block}}