/**
  * 编辑主题时页面新增的表单项目
  * @param Integer $fid: 版块ID
  * @param Integer $tid: 当前帖子ID
  * @return string 通过 return 返回即可输出到编辑主题页面中 
  */
 public function editpost($fid, $tid)
 {
     require_once './function/feedback.php';
     $typelist = getTypeList();
     $thread["proposalinfo"] = getFeedback($tid, $fid);
     include template('forum/post_proposal');
 }
예제 #2
0
function getSelectBox($language, $table, $name, $title, $checked, $onchange = NULL, $Town_id = NULL)
{
    switch ($table) {
        case 'jea_kind':
            $rows = getKindList($language);
            break;
        case 'jea_legal':
            $rows = getLegalList($language);
            break;
        case 'jea_position':
            $rows = getPositionList($language);
            break;
        case 'jea_direction':
            $rows = getDirectionList($language);
            break;
        case 'jea_area_unit':
            $rows = getAreaUnitList($language);
            break;
        case 'jea_type':
            $rows = getTypeList($language);
            break;
        case 'jea_town':
            $rows = getTownList($language);
            break;
        case 'jea_area':
            $rows = getAreaList($Town_id, $language);
            break;
    }
    $html = '';
    $html .= "<select name='{$name}' id='{$name}'  {$onchange} >";
    if (!empty($title)) {
        $html .= "<option value='0'>{$title}</option>";
    }
    foreach ($rows as $row) {
        $selected = '';
        $selected = $row[0] == $checked ? 'selected = selected' : '';
        $html .= "<option  value={$row['0']} {$selected} >{$row['1']}</option>";
    }
    $html .= "</select>";
    return $html;
}
  <div id="topLower" >

 
   <div class="internal">
   
    <div id="logo"><a href="__APP__/"><img src="__ROOT__/Style/gold/images/logo.png" width="235" height="90" alt="#" /></a></div>
 
<div style="padding-top:35px">
    <ul>
	<?php $typelist = getTypeList(array('type_id'=>0,'limit'=>10)); foreach($typelist as $vtype=> $va){ ?>
     	<li for="first"><a class="af" href="<?php echo ($va["turl"]); ?>" <?php if($va["is_blank"])echo 'target="_blank"'; ?>><?php echo ($va["type_name"]); ?></a>
        
      <!-- <span class="icon-dd"></span>-->
        
        
		<?php $sontypelist = getTypeList(array('type_id'=>$va['id'],'limit'=>10,'notself'=>true)); if(count($sontypelist)>0) echo "" ;if(count($sontypelist)>0) echo "<ol style='display:none'>"; foreach($sontypelist as $sonvtype){ ?>
		<li><a href="<?php echo ($sonvtype["turl"]); ?>" <?php if($sonvtype["is_blank"])echo 'target="_blank"'; ?>><?php echo ($sonvtype["type_name"]); ?></a></li>
		<?php } if(count($sontypelist)>0) echo '</ol>'; ?>
     	</li>
		
	<?php } ?>
	
	
	
	
	
	
	
	</ul>
	</div>
    }
    ?>
            </a>
            <div class="navigation-list-two-con" id="dw_ul2">
                <?php 
    if ($sontypelist != null) {
        ?>
              <div class="navigation-list-two">
                <?php 
        $sontypelist = getTypeList(array('type_id' => $va['id'], 'limit' => 8, 'notself' => true));
        ?>
                <span class="loanImg nav-sanjiao"></span>

                <ul class="navigation-two-list" id="erji_nav">
                  <?php 
        $sontypelist = getTypeList(array('type_id' => $va['id'], 'limit' => 8, 'notself' => true));
        foreach ($sontypelist as $sonvtype) {
            ?>
                  <li><a href="<?php 
            echo $sonvtype["turl"];
            ?>
"  ><?php 
            echo $sonvtype["type_name"];
            ?>
</a></li>
                  <?php 
        }
        ?>
                </ul>

              </div>
예제 #5
0
 public function kf()
 {
     $kflist = M("ausers")->where("is_kf=1")->select();
     $this->assign("kflist", $kflist);
     //left
     $listparm['type_id'] = 0;
     $listparm['limit'] = 20;
     if ($_GET['type'] == "subsite") {
         $listparm['area_id'] = $this->siteInfo['id'];
         $leftlist = getAreaTypeList($listparm);
     } else {
         $leftlist = getTypeList($listparm);
     }
     $this->assign("leftlist", $leftlist);
     $this->assign("cid", $typeid);
     if ($_GET['type'] == "subsite") {
         $vop = D('Aacategory')->field('type_name,parent_id')->find($typeid);
         if ($vop['parent_id'] != 0) {
             $this->assign('cname', D('Aacategory')->getFieldById($vop['parent_id'], 'type_name'));
         } else {
             $this->assign('cname', $vop['type_name']);
         }
     } else {
         $vop = D('Acategory')->field('type_name,parent_id')->find($typeid);
         if ($vop['parent_id'] != 0) {
             $this->assign('cname', D('Acategory')->getFieldById($vop['parent_id'], 'type_name'));
         } else {
             $this->assign('cname', $vop['type_name']);
         }
     }
     $this->display();
 }
function main()
{
    global $arrtype;
    ?>
<script language="javascript">
$(document).ready(function(){
	$("#form2").validate({
		rules:{
			name:{
				required:true,
				stringCheck:true,
				maxlength:64
			},
			
			parent_id:{
				required:true
			},
			
			disp_order:{
				number:true
			},
			type_desc:{
				maxlength:254
			},
			type_key:{
				maxlength:254
			}
		}
	});
	$("#form3").validate({
		rules:{
			t_type1:{
				required:true
			},
			t_type2:{
				required:true
			}
		}
	});
	$('#form1').form({
		onSubmit:function(){
			if(!$("#form1").valid()) {return false;}
		},
	    success:function(data){
	        $.messager.alert('系统提示', data, 'info',function(){
	        	location.href=location.href;
	        });
	    }
	});
	$('#form2').form({
		onSubmit:function(){
			if(!$("#form2").valid()) {return false;}
		},
	    success:function(data){
	        $.messager.alert('系统提示', data, 'info');
	    }
	});
	$("#btnEdit").click(function(){
		$("#form1").attr("action","?action=editall");
		$("#form1").submit();
	});
	$("#btnAdd").click(function(){
		$('#form2').form('clear');
		$("#flag").val("add");
		$('#win1').window('open'); 
	});
	$("#btnCancel").click(function(){
		location.href= "admin_apk_category.php?updatecache=1";
	});
	$("#btnMove").click(function(){
		$('#form3').form('clear');
		$('#win2').window('open'); 
	});
});
function ShowPDIV(i,p){
    if($("#type_P_CID_"+i)[0].length==0){
	    var v = $("#type_H_V")[0].innerHTML.split('@|@');
		$("#type_P_CID_"+i)[0].options[0] = new Option("作为顶级","0");
		for(j=1;j<v.length;j++){
		    $("#type_P_CID_"+i)[0].options[j] = new Option(v[j].split('|=|')[1],v[j].split('|=|')[0]);
			if(p==v[j].split('|=|')[0]) $("#type_P_CID_"+i)[0].options[j].selected = true;
		}
	}	
	$("#type_P_DIV_"+i)[0].style.display = ($("#type_P_DIV_"+i)[0].style.display == "none") ? "block" : "none";
}
function SelectPid(p,i){
	window.location.href = '?action=editid&typeid='+i+'&t_pid='+p;
}
</script>
<form action="" method="post" id="form1" name="form1">
<table class="tb2">
	<tr>
	<td>&nbsp;</td>
	<td width="35" align="center">编号</td>
	<td width="15%">名称</td>
	<td width="10%">关键字</td>
	<td width="15%">描述</td>
	<td width="5%">排序</td>
	<td width="25%">操作</td>
	</tr>
	<?php 
    $type = be("all", "type");
    if (isNum($type)) {
        $type = intval($type);
    } else {
        $type = 0;
    }
    getTypeList($type);
    ?>
	<tr>
	<td colspan="8"><input type="checkbox" name="chkall" id="chkall" class="checkbox" onClick="checkAll(this.checked,'t_id[]')" /> 全选
	&nbsp;<input type="button" value="批量修改" id="btnEdit" class="input" />
	&nbsp;<input type="button" value="添加" id="btnAdd" class="input" />
<!--	&nbsp;<input type="button" value="数据转移" id="btnMove" class="input" />-->
	</td>
	</tr>
</table>
</form>
<div id="type_H_V" style="display:none"><?php 
    echo $arrtype;
    ?>
</div>


<div id="win1" class="easyui-window" title="窗口" style="padding:5px;width:400px;" closed="true" closable="false" minimizable="false" maximizable="false">
<form action="admin_ajax.php?action=save&tab=apk_category" method="post" id="form2" name="form2">
<table class="tb">
	<input id="flag" name="flag" type="hidden" value="add">
	<tr>
	<td width="20%">父级分类:</td>
	<td><select id="parent_id" name="parent_id">
      <option value="0">顶级分类</option>
    	<?php 
    echo makeSelectAll("apk_category", "id", "name", "parent_id", "disp_order", 0, "", "&nbsp;|&nbsp;&nbsp;", "");
    ?>
	  </select>
	</td>
	</tr>
	<tr>
	<td>名称:</td>
	<td><input type="text" id="name" name="name" size="25">
	</td>
	</tr>
	
	<tr>
	<td>关键字:</td>
	<td><input type="text" id="type_key" name="type_key" size="25">
	</td>
	</tr>
	<tr>
	<td>描述:</td>
	<td><input type="text" id="type_desc" name="type_desc" size="25">
	</td>
	</tr>
	<tr>
	<td>排序:</td>
	<td><input type="text" id="disp_order" name="disp_order" size="25">
	</td>
	</tr>
	<tr align="center">
      <td colspan="2"><input class="input" type="submit" value="保存" id="btnSave"> <input class="input" type="button" value="返回" id="btnCancel"> </td>
    </tr>
  </form>
</table>
</div>

<div id="win2" class="easyui-window" title="窗口" style="padding:5px;width:400px;" closed="true" minimizable="false" maximizable="false">
<form action="?action=into" method="post" id="form3" name="form3">
<table class="tb">
	<tr>
	<td>
	选择分类:
	<select name="t_type1">
	<?php 
    echo makeSelectAll("{pre}art_type", "t_id", "t_name", "t_pid", "t_sort", 0, "", "&nbsp;|&nbsp;&nbsp;", "");
    ?>
	</select>
	</td>
	</tr>
	<tr>
	<td>
	目标分类:
	<select name="t_type2">
	<?php 
    echo makeSelectAll("{pre}art_type", "t_id", "t_name", "t_pid", "t_sort", 0, "", "&nbsp;|&nbsp;&nbsp;", "");
    ?>
	</select>
	</td>
	</tr>
	<tr>
	<td>
	<input class="input" type="submit" value="保存" id="btnSave">
	
</table>
</form>
</div>

</body>
</html>
<?php 
}
예제 #7
0
echo _pax;
?>
</label>
			<p>
				<input type="text" name="reservation_pax" id="reservation_pax" class="required digits width-50" title=' ' value='<?php 
echo $row->reservation_pax;
?>
'/>
			</p>
		    <label><?php 
echo _type;
?>
</label>
			<p>
					<?php 
echo getTypeList($row->reservation_hotelguest_yn, 'enabled');
?>
		    </p>
			<label><?php 
echo _phone_room;
?>
</label>
			<p>
				<input type="text" name="reservation_guest_phone" id="reservation_guest_phone" value='<?php 
echo $row->reservation_guest_phone;
?>
' />
			</p>
			<label><?php 
echo _note;
?>
예제 #8
0
		<br/>
		<p>
		<label><?php 
echo _pax;
?>
*</label><br/>
			<input type="text" name="reservation_pax" id="reservation_pax" class="required digits width-50" title=' ' />
		</p>
		<br/>
		<p>
	    <label><?php 
echo _type;
?>
*</label><br/>
				<?php 
getTypeList();
?>
		</p>
		<br/>
		<p>
		<label><?php 
echo _phone_room;
?>
</label><br/>
			<input type="text" name="reservation_guest_phone" id="reservation_guest_phone"/>
		</p>
		<br/>
		<p>
		<label><?php 
echo _email;
?>
예제 #9
0
파일: new.inc.php 프로젝트: hellovic/myseat
		</p>
		<br/>
		<p>
		<label><?php 
echo _pax;
?>
*</label><br/>
			<input type="text" name="reservation_pax" id="reservation_pax" class="required digits width-50" title=' ' />
		</p>
		<br/>
		<p>
	    <label><?php 
echo _type;
?>
*</label><br/>
				<? getTypeList();?>
		</p>
		<br/>
		<p>
		<label><?php 
echo _phone_room;
?>
</label><br/>
			<input type="text" name="reservation_guest_phone" id="reservation_guest_phone"/>
		</p>
		<br/>
		<p>
		<label><?php 
echo _note;
?>
</label><br/>
            <div class="clear"></div>
            </ul>
        </div>
        <div class="clear"></div>
    </div>
</div>

<div class="under">
	<div class="under_1000">
        <div class="logo_left"><a href="/p2p/index.php/home/index.html"><?php 
echo get_ad(1);
?>
</a></div>
        <div class="content_nav">
			<?php 
$typelist = getTypeList(array('type_id' => 0, 'limit' => 9));
foreach ($typelist as $vtype => $va) {
    ?>
            <a id="<?php 
    echo $va["type_nid"];
    ?>
" href="/p2p<?php 
    echo $va["turl"];
    ?>
" class=""><?php 
    echo $va["type_name"];
    ?>
</a>
            <?php 
}
?>