<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>网站配置</title>
        <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_PUC ?>css/common.css"/>
        <script type="text/javascript" charset="utf-8" src="/salary/Public/ueditor/ueditor.config.js"></script>
        <script type="text/javascript" charset="utf-8" src="/salary/Public/ueditor/lang/zh-cn/zh-cn.js"></script>
        <script type="text/javascript" charset="utf-8" src="/salary/Public/ueditor/ueditor.all.min.js"></script>
		  <style type="text/css">
			table{
			width: 100%;
			text-align: center;
			border: solid #bdccd2;
			border-width: 1px 0px 0px 1px;
		         }	
		   	td{
			border: solid #bdccd2;
			border-width:0px 1px 1px 0px;
			padding: 5px;
			height: 30px;
			text-align: right;
		     }
		    .lanmu-title{
		     	width: 20%;
		     	background:#def6ff;
		     	color: #272727;
		     }
		     .lanmu-luru input{
		     	float: left;
		     	width: 300px;
		     	height: 30px;
				outline: none;
		     }
		     .lanmu-luru select{
		     	float: left;
		     	width: 300px;
		     	height: 30px;
				outline: none;
		     }
			  .column-name{
			    width: 100%;
			    height: 30px;
			    background: #00455D;
			    line-height: 30px;
			    color: #ffffff;
			    padding-left: 20px;
			    font-size: 14px;
		      }
			   .lanmu-content textarea{
             	float: left;
             	width: 800px;
             	height: 500px;
             	outline: none;
           }

		</style>
	</head>
	<body>
		<div class="content">
			<div class="column-name">
				<div class="lmlb">网站配置</div>			
	</div>
	  <form method="post" action="" enctype="multipart/form-data" >
		<table border="0" cellspacing="0" cellpadding="0" style="padding-bottom:100px;">
			<tr>
				<td class="lanmu-title">配置名称</td>
				<td class="lanmu-luru" style="text-align:left;">配置值</td>
			</tr>
            <?php foreach($confs as $k=>$v): ?>
          <tr>
				<td class="lanmu-title"><?php echo" $v[cf_name]" ?></td>
				<td style="text-align:left;">
                 <?php if($v[cf_type]=='text'): ?>
                     <?php echo "<input name='$v[cf_ename]' type='text' value='$v[cf_value]'></input>"; ?>
                   <?php elseif($v[cf_type]=='textarea'): ?>  
                      <?php echo "<textarea style='width:300px;height:80px' name='$v[cf_ename]'>$v[cf_value]</textarea>" ; ?>
                   <?php elseif($v[cf_type]=='radio'):?>
                        <?php  $vas=array(); $vas=explode(',',$v[cf_values]); ?>
                         <?php foreach($vas as $k1=>$v1): ?>
                             <?php  $check=""; if($v[cf_value]==$v1){ $check="checked='checked'"; }else{ $check=""; } echo " <input name='$v[cf_ename]' type='radio' value='$v1' $check >$v1</input>" ; ?>
                         <?php endforeach; ?>
                         
                <?php endif; ?>
                
                
            </td>
			</tr>
            <?php endforeach; ?>
          <tr>
				<td colspan="2" rowspan="1" class="tijiao" style="text-align:center;">
                  <input id="inp_name" class="input_out" type="submit" value="确定添加"  onmousemove="this.className='input_move'" 
onmouseout="this.className='input_out'"></input>
                </td>
			</tr>
		</table>
       </form>
	</body>
</html>
 <script type="text/javascript">
  UE.getEditor('content',{initialFrameWidth:1200,initialFrameHeight:400,});
 </script>