<?php if (!defined('ROOT')){ echo 'Deny ...'; exit; } extract($data); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>MAIN</title>
        <link href="<?php echo $base_url; ?>static/css/style.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo $base_url; ?>static/css/select.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="<?php echo $base_url; ?>static/js/jquery.js"></script>
        <script type="text/javascript" src="<?php echo $base_url; ?>static/js/select-ui.min.js"></script>
    </head>

    <body>

        <div class="place">
            <span>位置：</span>
            <ul class="placeul">
                <li><a href="<?php echo $base->get_url(array('c' => 'frame', 'm' => 'main')); ?>">首页</a></li>
                <li><a href="<?php echo $base->get_url(array('c' => 'param')); ?>">参数配置</a></li>
                <li>新增参数</li>
            </ul>
        </div>

        <div class="formbody" style="margin-top: 10px;">
            <div class="usual"> 
                <?php echo form::start('form1');?>
                <?php echo form::input_hidden('cid', $cid);?>
                <?php echo form::nonce($admin['id'], 'createParam');?>
                <div class="tabson">
                    <?php echo form::tip($admin['username'], '新增参数');?>
                    <ul class="forminfo">
                        <?php                            
                            echo form::select('参数类型', '_type', 1, $_types, 'id::name', 137);
                            echo form::input(array(
                                'title' => '参数名称',
                                'name' => 'name',
                                'must' => 1,
                                'placeholder' => '请输入字母或数字',
                                'style' => '',
                                'value' => '',
                                'readonly' => 0
                            ));
                            echo form::textarea(array(
                                'title' => '参数内容',
                                'name' => 'content',
                                'must' => 1,
                                'placeholder' => '',
                                'style' => '',
                                'value' => '',
                                'readonly' => 0
                            ));
                        ?>                        
                        <?php echo form::submit('提交', 'btn88');?>
                    </ul>
                </div> 
                <?php echo form::end();?>
                <?php echo form::onclick('form1', 'btn88', '提交', $base->get_url(array('c' => 'param', 'm' => 'createAJAX')), $base->get_url(array('c' => 'param', 'cid' => $cid)));?>
            </div> 
        </div>
    </body>
</html>
