本文整理汇总了PHP中aci_ui_a函数的典型用法代码示例。如果您正苦于以下问题:PHP aci_ui_a函数的具体用法?PHP aci_ui_a怎么用?PHP aci_ui_a使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了aci_ui_a函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
function index()
{
$tree = $this->tree;
$tree->icon = array(' │ ', ' ├─ ', ' └─ ');
$tree->nbsp = ' ';
$result = $this->Module_menu_model->select('', '*,`menu_id` as id', '', 'list_order ASC,menu_id DESC');
$array = array();
foreach ($result as $r) {
$r['menu_name'] = $r['menu_name'];
$r['is_system'] = $r['is_system'] ? '是' : '否';
$r['is_side_menu'] = $r['is_side_menu'] ? '是' : '否';
if ($r['is_system']) {
$r['str_manage'] = aci_ui_a($this->page_data['folder_name'], $this->page_data['controller_name'], 'add', $r['id'], ' class="btn btn-default btn-xs"', '<span class="glyphicon glyphicon-plus"></span> 新增子菜单', true);
$r['str_manage'] .= " " . aci_ui_a($this->page_data['folder_name'], $this->page_data['controller_name'], 'edit', $r['id'], ' class="btn btn-default btn-xs"', '<span class="glyphicon glyphicon-wrench"></span> 修改', true);
} else {
}
$array[] = $r;
}
$str = "<tr>\n\t\t\t\t\t<td><input type='checkbox' name='pid[]' value='\$menu_id' /></td>\n\t\t\t\t\t<td><i class='fa fa-\$css_icon'></i> </td>\n\t\t\t\t\t<td>\$spacer\$menu_name</td>\n\t\t\t\t\t<td>\$folder</td>\n\t\t\t\t\t<td>\$controller</td>\n\t\t\t\t\t<td>\$method</td>\n\t\t\t\t\t<td>\$is_side_menu</td>\n\t\t\t\t\t<td>\$is_system</td>\n\t\t\t\t\t<td>\$str_manage</td>\n\t\t\t\t</tr>";
$tree->init($array);
$table_html = $tree->get_tree(0, $str);
$this->view('index', array('require_js' => true, 'table_html' => $table_html));
}
示例2: current_url
echo current_url();
?>
" >
<div class='panel panel-default'>
<div class='panel-heading'>
<i class='glyphicon glyphicon-edit'></i>
<?php
echo $is_edit ? "修改" : "新增";
?>
用户资料
<div class='panel-tools'>
<div class='btn-group'>
<?php
aci_ui_a($folder_name, 'role', 'index', '', ' class="btn btn-sm pull-right"', '<span class="glyphicon glyphicon-arrow-left"></span> 返回');
?>
</div>
</div>
</div>
<div class='panel-body'>
<fieldset>
<div class="form-group">
<label for="role_name" class="col-sm-2 control-label">用户组名</label>
<div class="col-sm-9">
<input type="text" name="role_name" id="role_name" value='<?php
echo isset($data_info['role_name']) ? $data_info['role_name'] : '';
?>
' class="form-control validate[required]" placeholder="请输入用户组名" >
</div>
示例3: aci_ui_a
</div>
<div class="form-group">
<label class="col-sm-2 control-label">成员图像</label>
<div class="col-sm-9">
<img width="100" id="thumb_SRC" border="1" src="<?php
echo $this->method_config['upload']['thumb']['upload_url'];
?>
/<?php
echo $data_info['avatar'];
?>
"/><input type="hidden" id="thumb" name="thumb" value="<?php
echo $data_info['avatar'];
?>
" />
<?php
aci_ui_a('', '', '', '', ' class="btn btn-default btn-sm uploadThumb_a"', '选择图片 ...');
?>
<span class="help-block">只支持图片上传.</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">是否锁定登录</label>
<div class="col-sm-4">
<label class="radio-inline">
<input type="radio" name="is_lock" id="is_lock1" value="1" <?php
echo $data_info['is_lock'] ? 'checked="checked"' : '';
?>
> 是
</label>
<label class="radio-inline">
<input type="radio" name="is_lock" id="is_lock2" value="0" <?php
示例4: aci_ui_a
<td><?php
echo $v['role_name'];
?>
</td>
<td>
<?php
aci_ui_a($folder_name, 'role', 'edit', $v['role_id'], ' class="btn btn-default btn-xs"', '<span class="glyphicon glyphicon-edit"></span> 修改');
?>
<?php
if ($v['role_id'] != SUPERADMIN_GROUP_ID) {
?>
<?php
aci_ui_a($folder_name, 'role', 'setting', $v['role_id'], ' class="btn btn-default btn-xs"', '<span class="glyphicon glyphicon-eye-open"></span> 权限分配');
?>
<?php
aci_ui_a($folder_name, 'role', 'delete_one', $v['role_id'], ' class="btn btn-default btn-xs"', '<span class="glyphicon glyphicon-edit"></span> 删除');
?>
<?php
}
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
示例5: current_url
<form class="form-horizontal" role="form" id="validateform" name="validateform" action="<?php
echo current_url();
?>
" >
<div class='panel panel-default'>
<div class='panel-heading'>
<i class='icon-edit icon-large'></i>
<?php
echo $is_edit ? "修改" : "新增";
?>
用户资料
<div class='panel-tools'>
<div class='btn-group'>
<?php
aci_ui_a($folder_name, 'user', 'index', '', ' class="btn btn-sm "', '<span class="glyphicon glyphicon-arrow-left"></span> 返回');
?>
</div>
</div>
</div>
<div class='panel-body'>
<fieldset>
<legend>基本信息</legend>
<?php
if (!$is_edit) {
?>
<div class="form-group">
<label class="col-sm-2 control-label">用户名</label>
<div class="col-sm-4">
<input type="text" name="username" id="username" class="form-control validate[required]" placeholder="请输入用户名" >
</div>
示例6: group_name
</td>
<td><?php
echo $v['mobile'];
?>
</td>
<td><?php
echo group_name($v['group_id']);
?>
</td>
<td><?php
echo $v['last_login_time'];
?>
</td>
<td>
<?php
aci_ui_a($folder_name, 'user', 'edit', $v['user_id'], ' class="btn btn-default btn-xs"', '<span class="glyphicon glyphicon-edit"></span> 修改');
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<div class="panel-footer">
<div class="pull-left">
<div class="btn-group">
示例7: current_url
<div class='panel panel-default'>
<div class='panel-heading'>
<i class='glyphicon glyphicon-list'></i> 菜单管理
<div class='panel-tools'>
<div class='btn-group'>
<a class='btn' href='<?php
echo current_url();
?>
'>
<i class='glyphicon glyphicon-refresh'></i>
刷新
</a>
<?php
aci_ui_a($folder_name, $controller_name, 'add', '0', ' class="btn btn-sm pull-right"', '<span class="glyphicon glyphicon-plus"></span> 添加菜单');
?>
</div>
</div>
</div>
<form id="formlist" name="formlist" method="post">
<div class="panel-body">
<table class="table table-hover">
<thead>
<tr>
<th>#</th>
<th>图标</th>
<th>菜单名称</th>
<th>文件夹</th>
<th>控制器</th>
<th>方法</th>
<th>左侧菜单</th>
示例8: aci_ui_a
<?php
aci_ui_a($folder_name, "moduleinstall", 'uninstall', $v['moduleName'], ' class="btn btn-default btn-xs"', '<span class="glyphicon glyphicon-stop"></span> 停用');
?>
<a href="<?php
echo base_url($v['moduleUrl']);
?>
" target="_blank" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-send"></span> 查看</a>
<?php
} else {
?>
<?php
aci_ui_a($folder_name, "moduleinstall", 'reinstall', $v['moduleName'], ' class="btn btn-info btn-xs"', '<span class="glyphicon glyphicon-play"></span> 启用');
?>
<?php
aci_ui_a($folder_name, "moduleinstall", 'delete', $v['moduleName'], ' class="btn btn-default btn-xs"', '<span class="glyphicon glyphicon-remove"></span> 删除');
?>
<?php
}
?>
<?php
} else {
?>
<button type="button" class="btn btn-default btn-xs "><span class="glyphicon glyphicon-lock"></span>系统模块无法操作</button>
<?php
}
?>
</td>
</tr>
<?php
$k++;
示例9: defined
<?php
defined('IN_ADMIN') or exit('No permission resources.');
?>
<div class="panel panel-default grid">
<div class='panel-heading'>
<i class='glyphicon glyphicon-th-list'></i>服务器列表
<div class='panel-tools'>
<div class='btn-group'>
<?php
aci_ui_a($folder_name, 'manage', 'index', '', ' class="btn "', '<span class="glyphicon glyphicon-arrow-left"></span> 返回');
?>
<div class="btn" id="refreshBtnF">
<span class="glyphicon glyphicon-refresh">刷新</span>
</div>
</div>
</div>
<div class='panel-filter'>
<form class="form-inline" role="form" method="get" name="searchform" action="<?php
echo current_url();
?>
">
<div class="form-group">
<label for="keyword" class="form-control-static control-label">关键词</label>
<input class="form-control input-sm" type="text" name="keyword" id="keyword" placeholder="请输入关键词" />
</div>
<button type="submit" name="dosubmit" value="搜索" class="btn btn-success">
<i class="glyphicon glyphicon-search"></i>
示例10: current_url
<form class="form-horizontal" method="post" action="<?php
echo current_url();
?>
" >
<div class='panel panel-default'>
<div class='panel-heading'>
<i class='icon-edit icon-large'></i>
<?php
echo $is_edit ? "编辑" : "添加";
?>
文章
<div class='panel-tools'>
<div class='btn-group'>
<?php
aci_ui_a($folder_name, 'news', 'nlist', '', ' class="btn btn-sm "', '<span class="glyphicon glyphicon-arrow-left"></span> 返回');
?>
</div>
</div>
</div>
<div class='panel-body'>
<fieldset>
<legend>基本信息</legend>
<div class="form-group">
<label class="col-sm-2 control-label">文章标题</label>
<div class="col-sm-4">
<input type="text" name="news_title" id="news_title" class="form-control validate[required]" placeholder="请输入文章标题" value="<?php
echo $data_info['news_title'];
?>
">
</div>
示例11: aci_ui_a
.table-width-npy{
width:20%
}
</style>
<div class='panel panel-default'>
<div class='panel-heading'>
<i class='icon-edit icon-large'></i>
<?php
echo $is_edit ? "编辑" : "添加";
?>
自定义菜单
<div class='panel-tools'>
<div class='btn-group'>
<?php
aci_ui_a($folder_name, 'WechatSite', 'diymenu', '', ' class="btn btn-sm "', '<span class="glyphicon glyphicon-arrow-left"></span> 返回');
?>
</div>
</div>
</div>
<form method="post" id="form_list">
<input type="hidden" name="formhash" value="<?php
echo $formhash;
?>
">
<table class="table table-hover">
<tr>
<td class="table-width-npy">父级菜单:</td>
<td>
<div class="col-sm-4">
<select class="form-control" name="pid">
示例12: aci_ui_a
aci_ui_a($folder_name, 'WechatSite', 'menu_edit', $v['id'], ' class="btn btn-default btn-xs"', '<span class="glyphicon glyphicon-edit"></span> 修改');
?>
<a href="<?php
echo base_url("{$folder_name}/WechatSite/menu_delete/{$v['id']}/{$formhash}");
?>
" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-remove"></span> 删除</a></td>
</tr>
<?php
}
}
?>
<?php
}
?>
</tbody>
</table>
</form>
</div>
<div class="panel-footer">
<div class=" text-center" >
<div class="btn-group">
<?php
aci_ui_a($folder_name, 'WechatSite', 'class_send', '', ' class="btn btn-warning btn-sm pull-right"', '<span class="glyphicon glyphicon-ok"></span> 生成新菜单');
?>
</div>
</div>
</div>
</div>
示例13: defined
<?php
defined('IN_ADMIN') or exit('No permission resources.');
?>
<div class="panel panel-default grid">
<div class='panel-heading'>
<i class='glyphicon glyphicon-th-list'></i><?php
echo ' ' . $table_name;
?>
数据表信息
<div class='panel-tools'>
<div class='btn-group'>
<?php
aci_ui_a($folder_name, 'edittable', 'index/' . $type, '', ' class="btn "', '<span class="glyphicon glyphicon-arrow-left"></span> 返回');
?>
<?php
if ($edit != 0) {
echo '<a class="btn" href=' . $add_action . '><span class="glyphicon glyphicon-plus">添加</span></a>';
}
?>
</div>
</div>
</div>
<div class="panel-body">
<?php
echo $table_data;
?>
<?php