<?php
	!defined('MEMBER_CENTER') && exit('Access Denied!');
?>
<!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>会员中心 - Powered by DirCMS</title>
<base href="<?php echo $DIRCMS['site_url'];?>" />
<script src="images/js/jquery.min.js"></script>
<link href="member/template/images/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="warp">
<?php include member_tlp('header');?>
<div class="container clearfix">
<?php include member_tlp('sidebar');?>

<div id="content">

<div class="tabs_header">
<ul class="tabs clearfix">
<li class="active"><a href="member/index.php?mod=yp&file=yp&action=set">商家资料</a></li>
<li><a href="member/index.php?mod=yp&file=yp&action=domain">域名菜单</a></li>
</ul>
</div>
<div class="display">
<div class="tdline">
<?php if($info && isset($info['status']) && $info['status']==2){?>

		<span style="color:#ff0000"><?php echo isset($info['status']) && $info['status']==2?'您的店铺由于违反黄页协议已被管理员关闭!':'';?></span>

<?php }else {?>
<form action="member/index.php?" method="post" name="myform">
<input type="hidden" name="do_submit" value="1" />
<input type="hidden" name="mod" value="<?php echo $mod;?>"> 
<input type="hidden" name="file" value="<?php echo $file;?>"> 
<input type="hidden" name="action" value="<?php echo $action;?>">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="19%" align="right">行业类别：</td>
		<td width="81%" align="left" valign="top" style="padding-left:10px">
		<?php echo js_selectmenu('yp','typeid','info',isset($info['typeid'])?$info['typeid']:'');?>
		</td>
	</tr>
	<tr>
		<td width="19%" align="right">黄页名称：</td>
		<td width="81%" align="left" valign="top" style="padding-left:10px">
		<input type="text" name="info[name]" value="<?php echo isset($info['name'])?$info['name']:'我的店铺';?>" size="30" />
		</td>
	</tr>
	<tr>
		<td width="19%" align="right">黄页LOGO：</td>
		<td width="81%" align="left" valign="top" style="padding-left:10px">
		<?php echo $form->image('logo',isset($info['logo'])?$info['logo']:'');?>
		</td>
	</tr>
	<tr>
		<td width="19%" align="right">黄页目录：</td>
		<td width="81%" align="left" valign="top" style="padding-left:10px">
		<input type="text" datatype="table"<?php echo $info?' readonly="1"':'';?> value="<?php echo isset($info['dir'])?$info['dir']:'';?>" size="10" <?php echo isset($info['status']) && $info['status']==2?'disabled="disabled"':'';?> name="info[dir]" />
		<span>由1-30位字母、数字、下划线组成!</span>
		</td>
	</tr>
	<tr>
		<td width="19%" align="right">顶部Banner：</td>
		<td width="81%" align="left" valign="top" style="padding-left:10px">
		<?php echo $form->image('banner',isset($info['banner'])?$info['banner']:'');?>
		</td>
	</tr>
	<tr>
		<td width="19%" align="right">Meta_title：</td>
		<td width="81%" align="left" valign="top" style="padding-left:10px">
		<input type="text" name="info[meta_title]" value="<?php echo isset($info['meta_title'])?$info['meta_title']:'';?>" size="30" />
		</td>
	</tr>
	<tr>
		<td width="19%" align="right">Meta_description：</td>
		<td width="81%" align="left" valign="top" style="padding-left:10px">
		<textarea name="info[meta_description]" cols="50" rows="6"><?php echo isset($info['meta_description'])?$info['meta_description']:'';?></textarea>
		</td>
	</tr>
	<tr>
		<td width="19%" align="right">Meta_keywords：</td>
		<td width="81%" align="left" valign="top" style="padding-left:10px">
		<input type="text" name="info[meta_keywords]" value="<?php echo isset($info['meta_keywords'])?$info['meta_keywords']:'';?>" size="30" />
		</td>
	</tr>
	<tr>
		<td width="19%" align="right">竞价排名：</td>
		<td width="81%" align="left" valign="top" style="padding-left:10px">
		<input type="text" datatype="number" value="<?php echo isset($info['seo'])?$info['seo']:'0';?>" size="4" name="info[seo]" /> 积分
		<span style="color:#FF0000">您当前的积分：<?php echo $_point;?>,出价越高，排名越靠前!</span>
		</td>
	</tr>
	<tr>
		<td width="19%" align="right">开放时间：</td>
		<td width="81%" align="left" valign="top" style="padding-left:10px">
		<input type="text" size="26" value="<?php echo isset($info['opentime'])?$info['opentime']:'8:00——18:00';?>" name="info[opentime]" />
		</td>
	</tr>
	<tr>
		<td width="19%" align="right">地图定位：</td>
		<td width="81%" align="left" valign="top" style="padding-left:10px">
		<?php echo $form->map('map',isset($info['map'])?$info['map']:MAP);?>
		</td>
	</tr>
	<?php if($forms)foreach($forms as $val){ ?>
	<tr>
		<td width="19%" align="right"><?php echo $val['name'];?>：</td>
		<td width="81%" align="left" valign="top" style="padding-left:10px">
		<?php echo $val['form'];?> <?php echo $val['unit']?$val['unit']:'';?>
		<span><?php echo $val['tips'];?></span>
		</td>
	</tr>
	<?php }?>
	<tr><td align="center" colspan="2"><input type="submit"  <?php echo isset($info['status']) && $info['status']==2?'disabled="disabled"':'';?> value="设 置" name="dosubmit" class="input_sub" />
		&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="清 除" name="doreset" class="input_sub" /></td></tr>
		
</table>
</form>
	<?php }?>

</div>
</div>
</div>


</div>
<?php include member_tlp('footer');?>
</div>
</body>
</html>
