当前位置: 首页>>代码示例>>PHP>>正文


PHP site_aurl函数代码示例

本文整理汇总了PHP中site_aurl函数的典型用法代码示例。如果您正苦于以下问题:PHP site_aurl函数的具体用法?PHP site_aurl怎么用?PHP site_aurl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了site_aurl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: index

 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);
 }
开发者ID:pondyond,项目名称:x6cms,代码行数:10,代码来源:profile.php

示例2: download

 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));
     }
 }
开发者ID:pondyond,项目名称:x6cms,代码行数:13,代码来源:sitemap.php

示例3: index

 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);
 }
开发者ID:pondyond,项目名称:x6cms,代码行数:13,代码来源:htaccess.php

示例4: edit

 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));
         }
     }
 }
开发者ID:pondyond,项目名称:x6cms,代码行数:23,代码来源:purview.php

示例5: _setlist

    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;
    }
开发者ID:pondyond,项目名称:x6cms,代码行数:32,代码来源:user.php

示例6: edit

 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);
         }
     }
 }
开发者ID:pondyond,项目名称:x6cms,代码行数:68,代码来源:category.php

示例7: site_aurl

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;
开发者ID:pondyond,项目名称:x6cms,代码行数:31,代码来源:htaccess.php

示例8: base_url

	<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">&nbsp;&nbsp;&nbsp;&nbsp;<?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 
开发者ID:pondyond,项目名称:x6cms,代码行数:31,代码来源:main_top.php

示例9: getFunc

 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;
 }
开发者ID:pondyond,项目名称:x6cms,代码行数:10,代码来源:purview_model.php

示例10: byte_format

        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;">
开发者ID:pondyond,项目名称:x6cms,代码行数:31,代码来源:sitemap.php

示例11: _setlist

    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;
    }
开发者ID:pondyond,项目名称:x6cms,代码行数:30,代码来源:tpltags.php

示例12: 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/<?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>
开发者ID:pondyond,项目名称:x6cms,代码行数:31,代码来源:main.php

示例13: _setlist

    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;
    }
开发者ID:pondyond,项目名称:x6cms,代码行数:32,代码来源:recommend.php

示例14: _setlist

    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;
    }
开发者ID:pondyond,项目名称:x6cms,代码行数:32,代码来源:slide.php

示例15: site_aurl

?>
</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>
开发者ID:pondyond,项目名称:x6cms,代码行数:31,代码来源:main_index.php


注:本文中的site_aurl函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。