Beispiel #1
0
<?php include template("manage_header");?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul><?php echo mcurrent_mltad($selector); ?></ul>
	</div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>全部广告</h2>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
					<tr><th width="72">ID</th>
					<th width="520">广告标题</th><th>日期</th><th width="114">操作</th></tr>
					<?php if(is_array($mltad)){foreach($mltad AS $index=>$one) { ?>
					<tr <?php echo $index%2?'':'class="alt"'; ?> id="team-list-id-<?php echo $one['id']; ?>">
						<td><?php echo $one['id']; ?><br />
(排序:<?php echo $one['sort_mltad']; ?>)</td>
						<td><?php echo $one['title']; ?> -<?php if($one['mltadw'] == mltad1){?>
                          <strong style="color:#F00"><?php if($one['xs_mltad'] == 1){?>
                          <strong >正在展示</strong>
                           <?php } else if($one['xs_mltad'] == 0) { ?>
                         没有展示
                        
                          <?php }?>【首页幻灯片】</strong>
                          <?php } else if($one['mltadw'] == mltad2) { ?>
Beispiel #2
0
<?php include template("manage_header");?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="leader">
	<div class="dashboard" id="dashboard">
		<ul><?php echo mcurrent_mltad('mltad'); ?></ul>
	</div>
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
				<?php if($mltad['id']){?>
					<h2>编辑广告</h2>
					<ul class="filter"><?php echo current_managemltad('edit', $mltad['id']); ?></ul>
				<?php } else { ?>
					<h2>新建广告</h2>
				<?php }?>
				</div>
                <div class="sect">
				<form id="-user-form" method="post" action="/manage/mltad/edit.php?id=<?php echo $mltad['id']; ?>" enctype="multipart/form-data" class="validator">
					<input type="hidden" name="id" value="<?php echo $mltad['id']; ?>" />
                    <div class="field tglx">

                            <label>广告位</label>
							<select name="mltadw" require="true" datatype="require"  class="f-city"  msg="请选择广告位"><option value="">请选择广告位</option>
                            <option value='mltad1' <?php if($mltad['mltadw'] == mltad1){?>selected="selected"<?php }?>>首页幻灯片</option>
                            <option value='mltad2' <?php if($mltad['mltadw'] == mltad2){?>selected="selected"<?php }?>>首页顶部N4</option>
                            <option value='mltad3' <?php if($mltad['mltadw'] == mltad3){?>selected="selected"<?php }?>>首页右侧推荐</option>
                            <option value='mltad4' <?php if($mltad['mltadw'] == mltad4){?>selected="selected"<?php }?>>首页最顶部</option>