コード例 #1
0
ファイル: columinfo.php プロジェクト: cordova2009/SMA
<?php

echo ace_header(array_values($this->breadcrumb));
echo ace_form_open('', '', array('cid' => $item['cid']));
?>
    <div class="row">
        <div class="col-xs-8">
            <?php 
$data = array('label_text' => '栏目类别', 'help' => '栏目的类别');
echo ace_dropdown($data, 'type', $this->model->type, $item['type']);
$data = array('label_text' => '上级栏目', 'help' => '可选,选择了此栏目将为下级栏目');
echo ace_dropdown($data, 'parents', $parents, $item['parents']);
echo ace_input_m('栏目标题', 'title', $item['title'], 'maxlength="50"');
echo ace_input(array('label_text' => '目录名', 'help' => '最后面请加上“/”'), 'directory', $item['directory'], 'maxlength="100"');
echo ace_input('控制器名', 'con_name', $item['con_name'], 'maxlength="100"');
?>
            
	       <!--/内容 -->
        </div>
        <div class="col-xs-12 col-sm-4">
            <div class="widget-box">
                <div class="widget-header">
                    <h4>参数</h4>

                    <div class="widget-toolbar">
                        <a data-action="collapse" href="#">
                            <i class="icon-chevron-up"></i>
                        </a>
                    </div>
                </div>
コード例 #2
0
ファイル: userinfo.php プロジェクト: cordova2009/SMA
echo ace_input_m($options, 'nickname', $item->nickname, 'maxlength="20"');
if (!$item->uid) {
    $options = array('label_text' => '密码', 'datatype' => 'pwd', 'help' => lang('pwd_help_msg'), 'errormsg' => lang('pwd_help_msg'));
    echo ace_password($options, array('id' => 'q_password1', 'name' => 'password'));
}
$data = array('label_text' => '所属用户组', 'help' => '');
echo ace_dropdown($data, 'gid', $group_list, $item->gid);
echo ace_group(ace_label('地区'), '<div id="city"></div>');
$options = array('label_text' => 'E-mail', 'help' => '用户的邮箱,格式:xx@xx.com');
echo ace_input($options, 'email', $item->email, 'maxlength="30"');
if ($item->uid) {
    $options = array('disabled' => 'disabled', 'name' => '', 'class' => 'width-100');
    echo ace_input('注册时间', $options, datetime($item->regtime));
    echo ace_input('注册IP', $options, $item->regip);
    echo ace_input('最后登入时间', $options, datetime($item->lastlogin));
    echo ace_input('最后登入IP', $options, $item->lastip);
}
echo ace_srbtn('admin/user/index');
echo ace_form_close();
?>
<script type="text/javascript">
    $(function(){

        $("input[type=password]").closest(".col-sm-5").addClass('col-sm-4').removeClass('col-sm-5');
        var qd_html = '<div class="passwordStrength"><b>密码强度:</b> <span class="">弱</span><span class="">中</span><span class="last">强</span></div>';

        $("#q_password1").closest('span').after(qd_html);
        
        $("#city").linkagesel({selected:'<?php 
echo $item->district;
?>
コード例 #3
0
ファイル: index.php プロジェクト: cordova2009/SMA
<?php

echo ace_header(array_values($this->breadcrumb), 'user/info');
echo ace_form_open();
$options = array('label_text' => '昵称', 'datatype' => '*2-20', 'nullmsg' => "请输入昵称!", 'errormsg' => "用户昵称最少2字节", 'help' => '昵称');
echo ace_input_m($options, 'nickname', $item['nickname'], 'maxlength="20"');
echo ace_input('邮箱', 'email', $item['email']);
echo ace_srbtn(null, false);
echo ace_form_close();
コード例 #4
0
ファイル: sellerInfo.php プロジェクト: cordova2009/SMA
<?php

echo ace_form_open();
$options = array('label_text' => '<span class="red">*</span>商户编号', 'help' => '商户登录后台的用户号');
echo ace_input($options, 'sellerid', $item->sellerid, 'maxlength="45" id="sellerid" disabled="disabled"');
$options = array('label_text' => '<span class="red">*</span>商户全称', 'help' => '商户全称');
echo ace_input($options, 'sellername', $item->sellername, 'maxlength="5" id="sellername" disabled="disabled"');
$options = array('label_text' => '<span class="red">*</span>商户简称', 'help' => '商户简称');
echo ace_input($options, 'shortname', $item->shortname, 'maxlength="45" id="shortname" disabled="disabled"');
$options = array('label_text' => '手机号', 'datatype' => 'n11-11', 'nullmsg' => "请输入手机号!", 'errormsg' => "请输入手机号", 'help' => '商户联系人手机号');
echo ace_input_m($options, 'mobilenum', $item->mobilenum, 'maxlength="11"');
$options = array('label_text' => '联系人', 'datatype' => '*1-15', 'nullmsg' => "请输入联系人!", 'errormsg' => "请输入联系人", 'help' => '联系人');
echo ace_input_m($options, 'contact', $item->contact, 'maxlength="15"');
$options = array('label_text' => 'QQ', 'datatype' => 'n5-15', 'nullmsg' => "请输入QQ!", 'errormsg' => "QQ号不能大于15位数字,不能小于5位", 'help' => '商户联系人的QQ');
//	echo ace_input_m($options,'qq',$item->qq,'maxlength="15"');
echo ace_srbtn('bp/main', false);
echo ace_form_close();
?>
<script type="text/javascript">
    $(function(){
        $("input[type=password]").closest(".col-sm-5").addClass('col-sm-4').removeClass('col-sm-5');
        var qd_html = '<div class="passwordStrength"><b>密码强度:</b> <span class="">弱</span><span class="">中</span><span class="last">强</span></div>';
        $("#q_password1").closest('span').after(qd_html);
    });
</script>
コード例 #5
0
ファイル: basic.php プロジェクト: cordova2009/SMA
echo ace_input(array('label_text' => '管理员QQ', 'help' => '管理员QQ,作为网站登入和联系管理员QQ'), 'site_admin_qq', $setting->site_admin_qq, 'maxlength="15"');
echo ace_input(array('label_text' => '系统错误信息', 'help' => '当系统出错时的显示信息'), 'site_error_message', $setting->site_error_message);
//echo ace_input(array('label_text'=>'字符串加密','help'=>'字符串加密,默认为123456,在启用程序时请修改,之后请劳记'),'site_auth_key',$setting->site_auth_key);
//echo ace_input(array('label_text'=>'缓存时间','help'=>'整站缓存时间,单位秒'),'site_cache_time',$setting->site_cache_time);
// echo ace_input(array('label_text'=>'后台程序目录','help'=>'后台目录,如果程序目录没有改动,请不要修改此项'),'site_admin_dir',$setting->site_admin_dir);
// echo ace_input(array('label_text'=>'基本素材目录','help'=>'基本素材目录,如果目录没有改动,请不要修改此项'),'site_static_dir',$setting->site_static_dir);
echo ace_input(array('label_text' => '每页数量', 'help' => '每页显示的数量'), 'site_page_num', $setting->site_page_num, 'maxlength="3"');
echo ace_input(array('label_text' => '限制登录总共次数', 'help' => '登入密码错误次数限制'), 'site_accesslogin_count', $setting->site_accesslogin_count);
echo ace_input(array('label_text' => '拒绝登录等待时间', 'help' => '登入密码错误次数达到, 将登录等待时间,单位分钟'), 'site_accesslogin_time', $setting->site_accesslogin_time);
// echo ace_radio(array('label_text'=>'是否开启缓存','help'=>'开启缓存后,将提高页面执行效率'),'cache_open',$setting->cache_open);
// echo ace_radio(array('label_text'=>'是否开启调试','help'=>'开启调试后,会在页脚输出页面调试信息'),'site_debug',$setting->site_debug);
?>
        </div>
<!--
        <div id="upload_set" class="tab-pane">
            <?php 
echo ace_input(array('label_text' => '图片文件上传目录', 'help' => '图片文件等素材上传保存目录,如果目录没有改动,请不要修改此项'), 'site_attachments_dir', $setting->site_attachments_dir);
echo ace_input(array('label_text' => '上传图片限制大小', 'help' => '上传图片限制大小,M为单位'), 'site_image_maxsize', $setting->site_image_maxsize);
echo ace_input(array('label_text' => '上传文件限制大小', 'help' => '上传文件限制大小,M为单位'), 'site_file_maxsize', $setting->site_file_maxsize);
echo ace_input(array('label_text' => '允许的图片格式', 'help' => '允许的图片格式,多个用|分隔'), 'site_image_ext', $setting->site_image_ext);
echo ace_input(array('label_text' => '允许的附件格式', 'help' => '允许的附件格式,多个用|分隔'), 'site_file_ext', $setting->site_file_ext);
?>
        </div>
-->
    </div>
    <?php 
echo ace_srbtn('', '');
echo ace_form_close();
?>
</div>
コード例 #6
0
ファイル: ace_helper.php プロジェクト: cordova2009/SMA
 function ace_input_m($options = '', $data = '', $value = '', $extra = '')
 {
     return ace_input($options, $data, $value, $extra, TRUE);
 }