예제 #1
0
 /**
  * 导出表单数据
  */
 public function dao_log()
 {
     $this->admin_priv('dao_log', 2);
     $id = yf_empty(intval($_GET['id']), 'System Error');
     $table_list = Model('forms')->get_table_list($id, 1);
     $info = Model('forms')->get_all_info_log($id, $table_list['val']);
     $name = Model('forms')->get_form_name($id);
     yf_daochu($table_list['table'], $info, $name);
     echo "Success";
 }
예제 #2
0
 public function dao_random()
 {
     header("Content-type:text/html;charset=utf-8");
     $count = Model('other')->check_num();
     if ($count > 0) {
         $info = Model('other')->get_code();
         $table = array('序号', '随机码');
         yf_daochu($table, $info, "生成随机码");
         $msg = "导出成功";
     } else {
         $msg = "你没有生成数据,不能导出";
     }
     echo $msg;
 }