public function loadField()
 {
     $tableName = I('tableName');
     $tableInfoArray = getTableInfoArray($tableName);
     $columnNameKey = getColumnNameKey();
     $str = '';
     foreach ($tableInfoArray as $tableInfo) {
         $str .= '<option value="' . $tableInfo[$columnNameKey] . '" >' . $tableInfo[$columnNameKey] . "</option>\r\n";
     }
     echo $str;
 }
 public function readOnColum()
 {
     C('LAYOUT_ON', false);
     $selectTableName = I('tableName');
     $columnNameKey = getColumnNameKey();
     $this->assign('columnNameKey', $columnNameKey);
     $tableInfoList = getTableInfoArray($selectTableName);
     $this->assign('tableInfoList', $tableInfoList);
     echo $this->fetch('viewModuleOn');
 }
 public function generateEditPage()
 {
     $templateFilePath = MODULE_PATH . "Template/View/editCode.html";
     $tableName = I('table');
     $TableName = tableNameToModelName($tableName);
     $tableInfoArray = getTableInfoArray($tableName);
     $columnNameKey = getColumnNameKey();
     $this->assign('tableName', $tableName);
     $this->assign('TableName', $TableName);
     $this->assign('tableInfoArray', $tableInfoArray);
     $this->assign('columnNameKey', $columnNameKey);
     $resultCode = $this->fetch($templateFilePath);
     return $resultCode;
 }