You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/application/views/bootstrap/author/author_edit.php

49 lines
1.7 KiB
PHP

<div class="row-fluid">
<div class="span2">
<?php echo $nav_view; ?>
</div>
<div class="span8">
<form action="<?php echo site_url('author/profile_submit') ?>" class="form-horizontal" name="form_author_edit" id="form_author_edit" method="post">
<legend>审核作者</legend>
<div class="control-group">
<?php
$a_check='';
$una_check='';
$author->a_active==1?$a_check=' checked ':$una_check=' checked ';
?>
<select class="span2" name="a_sitecode">
<option value="">分配站点</option>
<?php foreach ($this->config->item('site') as $site_item){?>
<option value="<?php echo $site_item['site_code'] ?>" <?php if($author->a_sitecode==$site_item['site_code']) echo 'selected'; ?> > <?php echo $site_item['site_code'] ?></option>
<?php } ?>
</select>
<label class="radio inline">
<input type="radio" name="a_active" id="a_active" value="1" <?php echo $a_check; ?> >通过
</label>
<label class="radio inline">
<input type="radio" name="a_active" id="a_active" value="0" <?php echo $una_check; ?> >不通过
</label>
<label class="radio inline">
<input type="radio" name="a_active" id="a_active" value="2" >删除
</label>
<input type="hidden" name="edit_a_name" id="edit_a_name" value="<?php echo $author->a_name; ?>">
<input type="hidden" name="edit_a_email" id="edit_a_email" value="<?php echo $author->a_email; ?>">
<a class="btn btn-primary pull-right" href="javascript:void(0);" onclick="$('#form_author_edit').attr('action','<?php echo site_url('author/edit_author_submit'); ?>');submitForm('form_author_edit');">提交审核</a>
</div><br>
</form>
<legend>作者资料</legend>
<?php echo $author_field; ?>
</div>
<div class="span2"></div>
</div>