64 lines
2.6 KiB
PHTML
64 lines
2.6 KiB
PHTML
|
<?php
|
|||
|
$this->headTitle($this->config->title->site);
|
|||
|
$this->headTitle('后台管理');
|
|||
|
$this->headTitle()->setSeparator(' - ');
|
|||
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|||
|
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
|
|||
|
$this->breadcrumb('<a href="/">首页</a>');
|
|||
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|||
|
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
|||
|
$this->breadcrumb('项目来源管理');
|
|||
|
$this->breadcrumb()->setSeparator(' > ');
|
|||
|
?>
|
|||
|
<div id="leftPanel">
|
|||
|
<?= $this->partial('data/left.phtml'); ?>
|
|||
|
</div>
|
|||
|
<div id="rightPanel">
|
|||
|
|
|||
|
<?php if ($this->msg or $this->messages) :?>
|
|||
|
<div id="message">
|
|||
|
<?php if ($this->msg) : ?>
|
|||
|
<p><?php echo $this->msg; ?></p>
|
|||
|
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
|||
|
<p><?php echo $msg; ?></p>
|
|||
|
<?php endforeach;endif; ?>
|
|||
|
</div>
|
|||
|
<?php endif; ?>
|
|||
|
|
|||
|
<div class="ctrlplan">
|
|||
|
<a href="/admin/data/source/">项目来源管理</a>
|
|||
|
<a href="/admin/data/source/do/add">添加项目来源</a>
|
|||
|
</div>
|
|||
|
<form method="post" action="/admin/data/source">
|
|||
|
<p>
|
|||
|
<label>标题:</label><br />
|
|||
|
<input type="text" name="title" value="<?php echo $this->info['title'];?>" />
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<label class="required">uuid:</label><br />
|
|||
|
<input type="text" name="uuid" value="<?php echo $this->info['uuid'];?>" />
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<label class="required">Code:</label><br />
|
|||
|
<input type="text" name="code" value="<?php echo $this->info['code'];?>" />
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<label>描述</label><br />
|
|||
|
<textarea id="description" class="samll half" name="description"><?php echo $this->info['description'];?></textarea>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<label>has_pages</label><br />
|
|||
|
<input type="radio" name="has_pages" value="true" <?php if($this->info['has_pages']) echo 'checked="checked"';?> />True <input type="radio" name="has_pages" value="false" <?php if(!$this->info['has_pages']) echo 'checked="checked"';?> />False
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<label>has_agreement</label><br />
|
|||
|
<input type="radio" name="has_agreement" value="true" <?php if($this->info['has_agreement']) echo 'checked="checked"';?> />True <input type="radio" name="has_agreement" value="false" <?php if(!$this->info['has_agreement']) echo 'checked="checked"';?> />False
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<input type="hidden" name="id" value="<?php echo $this->info['id'];?>" />
|
|||
|
<input type="hidden" name="do" value="<?php if($this->info['uuid']!='') echo 'edit';else echo 'add';?>" />
|
|||
|
<input type="hidden" name="submit" value="1" />
|
|||
|
<input type="submit" value="提交" />
|
|||
|
</p>
|
|||
|
</form>
|
|||
|
</div>
|