public function index() { $this->Purview_model->checkPurview($this->tablefunc); $func = ''; if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'save')) { $func = $this->Purview_model->getOtherFunc('submitTo(\'' . site_aurl($this->tablefunc . '/save') . '\',\'save\')', 'save'); } $res = array('tablefunc' => $this->tablefunc, 'view' => $this->Data_model->getSingle(array('id' => $this->session->userdata('uid')), 'user'), 'func' => $func); $this->load->view($this->tablefunc, $res); }
public function download() { $this->Purview_model->checkPurview($this->tablefunc, 'download'); $name = $this->uri->segment(4); if ($name) { $filename = $name . '.xml'; $data = file_get_contents($this->backuppath . $filename); $this->load->helper('download'); force_download($filename, $data); } else { redirect(site_aurl($this->tablefunc)); } }
public function index() { $this->Purview_model->checkPurview($this->tablefunc); $func = ''; if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'save')) { $func .= $this->Purview_model->getOtherFunc('submitTo(\'' . site_aurl($this->tablefunc . '/save') . '\',\'save\')', 'save'); } if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'restore')) { $func .= $this->Purview_model->getOtherFunc('submitTo(\'' . site_aurl($this->tablefunc . '/restore') . '\',\'restore\')', 'restore'); } $res = array('tablefunc' => $this->tablefunc, 'content' => read_file($this->filepath), 'func' => $func); $this->load->view($this->tablefunc, $res); }
public function edit() { $this->Purview_model->checkPurviewAjax($this->tablefunc, 'edit'); $post = $this->input->post(NULL, TRUE); if ($post['id'] && $post['action'] == site_aurl($this->tablefunc)) { if ($this->Data_model->getSingle(array('class' => $post['class'], 'id !=' => $post['id']))) { show_jsonmsg(array('status' => 206)); } $data = elements($this->fields, $post); $datawhere = array('id' => $post['id']); $this->Data_model->editData($datawhere, $data); $this->Purview_model->resetPurview(); show_jsonmsg(array('status' => 205)); } else { $id = $this->uri->segment(4); if ($id > 0 && ($view = $this->Data_model->getSingle(array('id' => $id)))) { $res = array('tpl' => 'view', 'tablefunc' => $this->tablefunc, 'parent' => $this->Data_model->getData(array('parent' => 0)), 'view' => $view); show_jsonmsg(array('status' => 200, 'remsg' => $this->load->view($this->tablefunc, $res, true))); } else { show_jsonmsg(array('status' => 203)); } } }
function _setlist($data, $ismultiple = true) { $newdata = $ismultiple ? $data : ($newdata[0] = $data); if ($ismultiple) { $newdata = $data; } else { $newdata = array(0 => $data); } $newstr = ''; foreach ($newdata as $key => $item) { $item['func'] = ''; if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'edit')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/edit/' . $item['id']), 'edit'); } if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'del') && $item['id'] > 1) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/del/' . $item['id']), 'sdel', $item['id']); } $disabled = $item['id'] == 1 ? 'disabled' : ''; $newstr .= '<tr id="tid_' . $item['id'] . '"> <td width=30><input type=checkbox name="optid[]" ' . $disabled . ' value=' . $item['id'] . '></td> <td width=40>' . $item['id'] . '</td> <td width=80>' . $item['username'] . '</td> <td width=120>' . $item['email'] . '</td> <td width=100>' . $item['realname'] . '</td> <td>' . $item['mobile'] . '</td> <td width=120>' . date('Y-m-d H:i:s', $item['createtime']) . '</td> <td width=120>' . date('Y-m-d H:i:s', $item['lasttime']) . '</td> <td width=50 >' . lang('status' . $item['status']) . '</td> <td width=50>' . $item['func'] . '</td></tr>'; } return $newstr; }
public function edit() { $this->Purview_model->checkPurviewAjax($this->tablefunc, 'edit'); $post = $this->input->post(NULL, TRUE); if ($post['id'] && $post['action'] == site_aurl($this->tablefunc)) { if ($this->Data_model->getSingle(array('lang' => $this->editlang, 'dir' => $post['dir'], 'id !=' => $post['id']))) { show_jsonmsg(array('status' => 206)); } $data = elements($this->fields, $post); $view = $this->Data_model->getSingle(array('id' => $post['id'])); if ($view['parent'] != $data['parent']) { $pview = $this->Data_model->getSingle(array('id' => $data['parent'])); if (!$pview) { $maxnum = $this->Data_model->getDataNum(array('lang' => $this->editlang)); $pview['lft'] = $maxnum * 2; $pview['rht'] = $pview['lft'] + 1; } $betweeval = $view['rht'] - $view['lft']; $alldata = $this->Data_model->getData(array('lang' => $this->editlang, 'lft >=' => $view['lft'], 'rht <=' => $view['rht']), 'lft'); $ids = array(); foreach ($alldata as $item) { $ids[] = $item['id']; } if ($pview['rht'] > $view['rht']) { $this->db->set('lft', 'lft-' . $betweeval . '-1', FALSE); $this->db->where(array('lft >' => $view['rht'], 'lft <' => $pview['rht'], 'lang' => $this->editlang)); $this->db->update('category'); $this->db->set('rht', 'rht-' . $betweeval . '-1', FALSE); $this->db->where(array('rht >' => $view['rht'], 'rht <' => $pview['rht'], 'lang' => $this->editlang)); $this->db->update('category'); $val = $pview['rht'] - $view['rht'] - 1; $this->db->set('lft', 'lft+' . $val, FALSE); $this->db->set('rht', 'rht+' . $val, FALSE); $this->db->where_in('id', $ids); $this->db->update('category'); } else { $this->db->set('lft', 'lft+' . $betweeval . '+1', FALSE); $this->db->where(array('lft >' => $pview['rht'], 'lft <' => $view['lft'], 'lang' => $this->editlang)); $this->db->update('category'); $this->db->set('rht', 'rht+' . $betweeval . '+1', FALSE); $this->db->where(array('rht >=' => $pview['rht'], 'rht <' => $view['lft'], 'lang' => $this->editlang)); $this->db->update('category'); $val = $view['lft'] - $pview['rht']; $this->db->set('rht', 'rht-' . $val, FALSE); $this->db->set('lft', 'lft-' . $val, FALSE); $this->db->where_in('id', $ids); $this->db->update('category'); } } $this->Data_model->editData(array('id' => $post['id']), $data); $this->Cache_model->deleteSome($this->tablefunc . '_' . $this->editlang); show_jsonmsg(205); } else { $id = $this->uri->segment(4); if ($id > 0 && ($view = $this->Data_model->getSingle(array('id' => $id)))) { $parentstr = ''; $parent = $this->Data_model->getData(array('lang' => $this->editlang, 'parent !=' => $id)); $arr = array('listarr' => $parent, 'tid' => $view['parent'], 'did' => $id, 'liststr' => "<option value='\$id' \$selected \$disabled >\$spacer \$name</option>"); $this->load->library('tree', $arr); $parentstr = $this->tree->getlist(); $parentstr = '<option value="0">' . lang('category_top') . '</option>' . $parentstr; $res = array('tpl' => 'view', 'tablefunc' => $this->tablefunc, 'modelarr' => $this->modelarr, 'parentstr' => $parentstr, 'view' => $view); show_jsonmsg(array('status' => 200, 'remsg' => $this->load->view($this->tablefunc, $res, true))); } else { show_jsonmsg(203); } } }
echo site_aurl($tablefunc); ?> " class="current"><?php echo lang('func_' . $tablefunc); ?> </a> <font color="red"><?php echo lang('htaccess_tip'); ?> </font> </td></tr> </table> </div> <form name="formview" id="formview" action="" method="post"> <input type="hidden" name="action" id="action" value="<?php echo site_aurl('htaccess'); ?> "> <div id="main" class="main" style="padding-top:35px;"> <table cellSpacing=0 width="100%" class="content_view"> <tr><td width="100"><?php echo lang('content'); ?> </td><td> <textarea cols="90" rows="20" name="content" id="content" class="txtarea"><?php echo isset($content) ? $content : ''; ?> </textarea></td></tr> <tr><td></td><td><?php if (isset($func)) { echo $func;
<tr><td rowspan="2" width="150"><div class="logo"><a href="<?php echo base_url(); ?> " target="_blank"><img src="<?php echo base_url(); ?> images/x6cms.gif" width=150></a></div></td> <td height="40"><div class="nav"> <?php echo lang('welcome'); echo $username; ?> <i>|</i> [<?php echo lang($varname); ?> ] <i>|</i> [<a href="<?php echo site_aurl('main/logout'); ?> " target="_top"><?php echo lang('logout'); ?> </a>]</div></td> <td align="right"><div class="nav"> <a href="<?php echo base_url(); ?> " target="_blank"><?php echo lang('browse_site'); ?> </a> <i>|</i> <a href="http://bbs.x6cms.com" target="_blank"><?php
function getFunc($tablefunc, $funcarr = array()) { $resstr = ''; foreach ($funcarr as $func) { if ($this->checkPurviewFunc($tablefunc, $func)) { $resstr .= '<input type="button" class="btn" onclick="submitTo(\'' . site_aurl($tablefunc . '/' . $func) . '\',\'' . $func . '\')" value="' . lang('btn_' . $func) . '">'; } } return $resstr; }
echo $item['name']; ?> </td> <td width="100"><?php echo byte_format($item['size']); ?> </td> <td width="150"><?php echo date('Y-m-d H:i:s', $item['date']); ?> </td> <td width="50"> <?php echo $isdownload ? '<a href="' . site_aurl('sitemap/download/' . substr($item['name'], 0, strlen($item['name']) - 4)) . '" title="' . lang('download') . '" class="down"></a>' : ''; if ($isdel) { echo $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/del'), 'sdel', base64_encode($item['name'])); } ?> </td> </tr> <?php } } ?> </tbody> </table> </div> </form> <div id="main_foot" class="main_foot"> <table> <tr><td height="40" style="background:#f6f6f6;">
function _setlist($data, $ismultiple = true) { $newdata = $ismultiple ? $data : ($newdata[0] = $data); if ($ismultiple) { $newdata = $data; } else { $newdata = array(0 => $data); } $newstr = ''; foreach ($newdata as $key => $item) { $item['func'] = ''; if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'edit')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/edit/' . $item['id']), 'edit'); } if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'order')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/order'), 'order'); } if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'del')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/del/' . $item['id']), 'sdel', $item['id']); } $newstr .= '<tr id="tid_' . $item['id'] . '"> <td width=30><input type=checkbox name="optid[]" value=' . $item['id'] . '></td> <td width=50><input type="hidden" name="ids[]" value="' . $item['id'] . '"><input type="text" name="listorder[]" class="input-order" size="3" value="' . $item['listorder'] . '"></td> <td width=40>' . $item['id'] . '</td> <td width=180><font color="green">[' . lang('tpltags_' . $item['type']) . ']</font>' . $item['title'] . '</td> <td><div class="codebox"><pre>' . htmlspecialchars($item['value']) . '</pre></div></td> <td width=50>' . $item['func'] . '</td></tr>'; } return $newstr; }
js/datejs/WdatePicker.js"></script> <script type="text/javascript" charset="utf-8" src="<?php echo base_url(); ?> js/kindeditor/kindeditor-min.js"></script> <script type="text/javascript" src="<?php echo base_url(); ?> js/language/<?php echo $this->Cache_model->defaultAdminLang; ?> .js"></script> <script type="text/javascript"> var baseurl = "<?php echo base_url(); ?> "; var siteaurl = "<?php echo site_aurl(); ?> "; var siteurl = "<?php echo site_url(); ?> "; </script> </head><body> <iframe src="<?php echo site_aurl('main/main_index'); ?> "></iframe></body></html>
function _setlist($data, $ismultiple = true) { $newdata = $ismultiple ? $data : ($newdata[0] = $data); if ($ismultiple) { $newdata = $data; } else { $newdata = array(0 => $data); } $newstr = ''; foreach ($newdata as $key => $item) { $item['func'] = ''; if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'edit')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/edit/' . $item['id']), 'edit'); } if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'order')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/order'), 'order'); } if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'del')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/del/' . $item['id']), 'sdel', $item['id']); } $newstr .= '<tr id="tid_' . $item['id'] . '"> <td width=30><input type=checkbox name="optid[]" value=' . $item['id'] . '></td> <td width=50><input type="hidden" name="ids[]" value="' . $item['id'] . '"><input type="text" name="listorder[]" class="input-order" size="3" value="' . $item['listorder'] . '"></td> <td width=40>' . $item['id'] . '</td> <td width=150>' . $item['title'] . '</td> <td width=150>' . lang('model_' . $item['model']) . '</td> <td>' . $item['remark'] . '</td> <td width=50 >' . lang('status' . $item['status']) . '</td> <td width=50>' . $item['func'] . '</td></tr>'; } return $newstr; }
function _setlist($data, $ismultiple = true) { $newdata = $ismultiple ? $data : ($newdata[0] = $data); if ($ismultiple) { $newdata = $data; } else { $newdata = array(0 => $data); } $newstr = ''; foreach ($newdata as $key => $item) { $item['func'] = ''; if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'edit')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/edit/' . $item['id']), 'edit'); } if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'order')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/order'), 'order'); } if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'del')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/del/' . $item['id']), 'sdel', $item['id']); } $typestr = isset($this->typearr[$item['type']]) ? '[<font color="green">' . $this->typearr[$item['type']]['title'] . '</font>]' : ''; $newstr .= '<tr id="tid_' . $item['id'] . '"> <td width=30><input type=checkbox name="optid[]" value=' . $item['id'] . '></td> <td width=50><input type="hidden" name="ids[]" value="' . $item['id'] . '"><input type="text" name="listorder[]" class="input-order" size="3" value="' . $item['listorder'] . '"></td> <td width=40>' . $item['id'] . '</td> <td width=200>' . $typestr . '<a href="' . $item['url'] . '" target="_blank">' . $item['title'] . '</a></td> <td><img src="' . get_image_url($item['thumb']) . '" width="300"></td> <td width=50 >' . lang('status' . $item['status']) . '</td> <td width=50>' . $item['func'] . '</td></tr>'; } return $newstr; }
?> </title> <FRAMESET FRAMEBORDER=0 framespacing=0 border=1 rows="85,*,22"> <FRAME SRC="<?php echo site_aurl('main/main_top'); ?> " name="top" FRAMEBORDER=0 NORESIZE SCROLLING='no' marginwidth=0 marginheight=0> <FRAMESET FRAMEBORDER=0 framespacing=0 border=0 cols="150,12,*,8" id="frame-body"> <FRAME SRC="<?php echo site_aurl('main/main_left'); ?> " FRAMEBORDER=0 id="main_left" name="menu"> <FRAME src="<?php echo site_aurl('main/main_center'); ?> " id="main_center" name="main_center" frameborder="no" scrolling="no"> <FRAME SRC="<?php echo site_aurl($defaultfunc); ?> " FRAMEBORDER=0 id="main_main" name="main"> <FRAME src="<?php echo site_aurl('main/main_right'); ?> " id="main_right" name="main_right" frameborder="no" scrolling="no"> </FRAMESET> <FRAME SRC="<?php echo site_aurl('main/main_foot'); ?> " name="footer1" FRAMEBORDER=0 NORESIZE SCROLLING='no' marginwidth=0 marginheight=0> </FRAMESET> </html>
<script type="text/javascript" src="<?php echo base_url('js/jquery.artDialog.js?skin=default'); ?> "></script> <script type="text/javascript" src="<?php echo base_url('js/datejs/WdatePicker.js'); ?> "></script> <script type="text/javascript" charset="utf-8" src="<?php echo base_url('js/kindeditor/kindeditor-min.js'); ?> "></script> <script type="text/javascript" src="<?php echo base_url('js/language/' . $this->Cache_model->defaultAdminLang . '.js'); ?> "></script> <script type="text/javascript"> var baseurl = "<?php echo base_url(); ?> "; var siteaurl = "<?php echo site_aurl(); ?> "; var siteurl = "<?php echo site_url(); ?> "; </script> </head><body>
function _setlist($data, $ismultiple = true) { $newdata = $ismultiple ? $data : array(0 => $data); $newstr = ''; foreach ($newdata as $key => $item) { $item['func'] = ''; if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'edit')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/edit/' . $item['id']), 'edit'); } if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'del') && $item['id'] > 1) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/del/' . $item['id']), 'sdel', $item['id']); } if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'grant')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/grant/' . $item['id']), 'grant', $item['id']); } $disabled = $item['id'] == 1 ? 'disabled' : ''; $newstr .= '<tr id="tid_' . $item['id'] . '"> <td width=30><input type=checkbox name="optid[]" ' . $disabled . ' value=' . $item['id'] . '></td> <td width=50><input type="hidden" name="ids[]" value="' . $item['id'] . '"><input type="text" name="listorder[]" class="input-order" size="3" value="' . $item['listorder'] . '"></td> <td width=40>' . $item['id'] . '</td> <td width=100>' . lang($item['varname']) . '</td> <td>' . $item['varname'] . '</td> <td width=50 >' . lang('status' . $item['status']) . '</td> <td width=80>' . $item['func'] . '</td></tr>'; } return $newstr; }
<?php if ($key > 0) { ?> <table class="left_menu" cellpadding=0 cellspacing=0 id="purview_<?php echo $key; ?> "> <tr><td><b class="mtop"><?php echo lang('func_' . $purview[3][$key]['class']); ?> </b></td></tr> <?php foreach ($item as $puritem) { ?> <tr><td onclick="seton(this,'<?php echo site_aurl($puritem['class']); ?> ');"><span><a href="javascript:void(0)"><?php echo lang('func_' . $puritem['class']); ?> </a></span></td></tr> <?php } ?> </table> <?php } } ?> <script type="text/javascript"> function setTab(tid){
<?php $this->load->view('admin_head.php'); ?> <div id="main_head" class="main_head" style="height:35px;"> <table class="menu"> <tr><td> <a href="<?php echo site_aurl('adminindex'); ?> " class="current"><?php echo lang('func_adminindex'); ?> </a><?php if (is_dir('./install')) { ?> <font color="red"><?php echo lang('installnotice'); ?> </font><?php } ?> </td></tr> </table> </div> <div id="main_head" style="padding-top:35px;"> <table cellSpacing=0 width="100%" class="content_list"> <tr><th width="50%" align="left" colspan="2"><?php echo lang('userinfo'); ?> </th><th align="left" colspan="2" width="50%"><?php
url: "<?php echo site_aurl('main/login'); ?> ", data: "opt=ajax&user_name="+user_name+"&user_pass="******"<?php echo site_aurl('main'); ?> "; <?php } ?> }else{ $("#msgtip").html("<?php echo lang('name_or_pass_error'); ?> "); flashing(); } }, beforeSend:function(){ $("#msgtip").html("<?php
function _setlist($data, $ismultiple = true) { $newdata = $ismultiple ? $data : ($newdata[0] = $data); if ($ismultiple) { $newdata = $data; } else { $newdata = array(0 => $data); } $newstr = ''; foreach ($newdata as $key => $item) { $item['func'] = ''; if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'edit')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/edit/' . $item['id']), 'edit'); } if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'order')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/order'), 'order'); } if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'del')) { $item['func'] .= $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/del/' . $item['id']), 'sdel', $item['id']); } $categorystr = isset($this->categoryarr[$item['category']]) ? '[<a href="' . site_url('category/' . $this->categoryarr[$item['category']]['dir']) . $this->langurl . '" target="_blank"><font color="green">' . $this->categoryarr[$item['category']]['name'] . '</font></a>]' : ''; $newstr .= '<tr id="tid_' . $item['id'] . '"> <td width=30><input type=checkbox name="optid[]" value=' . $item['id'] . '></td> <td width=50><input type="hidden" name="ids[]" value="' . $item['id'] . '"><input type="text" name="listorder[]" class="input-order" size="3" value="' . $item['listorder'] . '"></td> <td width=40>' . $item['id'] . '</td> <td>' . $categorystr . '<a href="' . site_url('detail/' . $this->categoryarr[$item['category']]['dir'] . '/' . $item['id'] . $this->langurl) . '" target="_blank" style="color:' . $item['color'] . '">' . $item['title'] . '</a></td> <td width=80>' . $item['hits'] . '</td> <td width=80>' . $item['realhits'] . '</td> <td width=50 >' . lang('status' . $item['status']) . '</td> <td width=50>' . $item['func'] . '</td></tr>'; } return $newstr; }
public function logout() { $this->load->model('User_model'); $this->User_model->logout(); redirect(site_aurl('login')); }
</a><?php } ?> <a href="<?php echo site_aurl($tablefunc . '/upgrade'); ?> " class="current"><?php echo lang('database_upgrade'); ?> </a> </td></tr> </table> </div> <form name="formview" id="formview" action="" method="post"> <input type="hidden" name="action" id="action" value="<?php echo site_aurl($tablefunc . '/upgrade'); ?> "> <div id="main" class="main" style="padding-top:40px;"> <table cellSpacing=0 width="100%" class="content_view"> <tr><td width="100"><?php echo lang('database_sql'); ?> </td> <td><textarea name="upgradesql" id="upgradesql" style="width:600px;height:400px;" class="txtarea validate" validtip="required"></textarea></td></tr> <tr><td width="100"></td><td><div class="func"><?php if (isset($funcstr)) { echo $funcstr; } ?> </div></td></tr>
<table><tr><td> <div class="func"><?php if (isset($funcstr)) { echo $funcstr; } ?> </div> </td></tr></table> </div> <?php $this->load->view('admin_foot.php'); } elseif ($tpl == 'view') { ?> <form name="formview" id="formview" action="" method="post"> <input type="hidden" name="action" id="action" value="<?php echo site_aurl($tablefunc); ?> "> <input type="hidden" name="id" value="<?php echo isset($view['id']) ? $view['id'] : ''; ?> "> <div id="main_view" class="main_view"> <table cellSpacing=0 width="100%" class="content_view"> <tr><td width="100"><?php echo lang('model_varname'); ?> </td> <td><input type="text" name="varname" id="varname" class="validate input-text" validtip="required" value="<?php echo isset($view['varname']) ? $view['varname'] : ''; ?>
<tr><td></td><td><?php if (isset($func)) { echo $func; } ?> </td></tr> </table> </div> </form> <?php } elseif ($tpl == 'add') { ?> <form name="formview" id="formview" action="" method="post"> <input type="hidden" name="action" id="action" value="<?php echo site_aurl('config/add'); ?> "> <div id="main" class="main" style="padding-top:35px;padding-bottom:0;"> <table cellSpacing=0 width="100%" class="content_view"> <tr><td width="100" align="right"><?php echo lang('varname'); ?> </td><td><input type="text" name="varname" id="varname" size="50" class="validate input-text" validtip="required" value=""></td></tr> <tr><td width="100" align="right"><?php echo lang('title'); ?> </td><td><input type="text" name="title" id="title" size="50" class="validate input-text" validtip="required" value=""></td></tr> <tr><td width="100" align="right"><?php echo lang('value'); ?>
function _setlist($data) { $newstr = ''; foreach ($data as $key => $item) { $item['func'] = ''; if ($this->Purview_model->checkPurviewFunc($this->tablefunc, 'del')) { $item['func'] = $this->Purview_model->getSingleFunc(site_aurl($this->tablefunc . '/del/' . $item['id']), 'sdel', $item['id']); } $newstr .= '<tr id="tid_' . $item['id'] . '"> <td width=100 align="right">' . $item['title'] . '</td> <td><input type="text" name="config[' . $item['varname'] . ']" id="' . $item['varname'] . '" size="50" class="input-text fl" value="' . $item['value'] . '">' . $item['func'] . $item['varname'] . '</td> </tr>'; } return $newstr; }
<?php $this->load->view('admin_head.php'); ?> <div id="main_head" class="main_head" style="height:35px;"> <table class="menu"> <tr><td><a href="<?php echo site_aurl($tablefunc . '/clear'); ?> " class="current"><?php echo lang('func_clearcache'); ?> </a> <font color="red"><?php if (isset($message)) { echo $message; } ?> </font></td></tr> </table> </div> <?php $this->load->view('admin_foot.php');