added missing site editing pages

This commit is contained in:
hyung-hwan 2010-02-19 09:28:21 +00:00
parent 4c40bfe770
commit 84edaebec2
2 changed files with 170 additions and 0 deletions

View File

@ -0,0 +1,70 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="text/css" rel="stylesheet" href="<?=base_url()?>/css/common.css" />
<link type="text/css" rel="stylesheet" href="<?=base_url()?>/css/project.css" />
<title><?=htmlspecialchars($site->name)?></title>
</head>
<body>
<div class="content" id="site_delete_content">
<!---------------------------------------------------------------------------->
<?php $this->load->view ('taskbar'); ?>
<!---------------------------------------------------------------------------->
<?php
$this->load->view (
'projectbar',
array (
'site' => NULL,
'project' => NULL,
'pageid' => 'site',
'ctxmenuitems' => array ()
)
);
?>
<!---------------------------------------------------------------------------->
<div class="mainarea">
<?php if ($message != "") print "<div id='site_create_message' class='form_message'>$message</div>"; ?>
<?=form_open('site/delete/'.$site->id)?>
<?=form_fieldset()?>
<div>
<div>
<?=form_checkbox('site_confirm', 'yes', set_checkbox('site_confirm', $site_confirm))?>
<?=$this->lang->line('MSG_SURE_TO_DELETE_THIS')?> - <?=htmlspecialchars($site->name)?>
<?=form_error('site_confirm')?>
</div>
</div>
<div>
<?=form_hidden('site_id', set_value('site_id', $site->id))?>
<?=form_hidden('site_name', set_value('site_name', $site->name))?>
</div>
<div>
<?=form_submit('site', $this->lang->line('Delete'))?>
</div>
<?=form_fieldset_close()?>
<?=form_close();?>
</div>
<!---------------------------------------------------------------------------->
<?php $this->load->view ('footer'); ?>
<!---------------------------------------------------------------------------->
</div> <!-- site_delete_content -->
</body>
</html>

View File

@ -0,0 +1,100 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="text/css" rel="stylesheet" href="<?=base_url()?>/css/common.css" />
<link type="text/css" rel="stylesheet" href="<?=base_url()?>/css/project.css" />
<title><?=htmlspecialchars($site->name)?></title>
</head>
<body>
<div class="content" id="site_edit_content">
<!------------------------------------------------------------------------>
<?php $this->load->view ('taskbar'); ?>
<!------------------------------------------------------------------------>
<?php
$this->load->view (
'projectbar',
array (
'site' => NULL,
'project' => NULL,
'pageid' => 'site',
'ctxmenuitems' => array ()
)
);
?>
<!------------------------------------------------------------------------>
<div class="mainarea" id="site_edit_mainarea">
<?php
if ($message != '') print "<div id='site_create_message' class='form_message'>$message</div>";
$formurl = "site/{$mode}";
if ($mode == 'update') $formurl .= '/'.$site->id;
?>
<?=form_open($formurl)?>
<?=form_fieldset()?>
<div>
<div>
<?=form_label($this->lang->line('ID').': ', 'site_id')?>
<?=form_error('site_id')?>
</div>
<div>
<?php
$extra = ($mode == 'update')? 'readonly="readonly"': '';
$extra .= 'maxlength="32" size="16"';
?>
<?=form_input('site_id', set_value('site_id', $site->id), $extra)?>
</div>
</div>
<div>
<div>
<?=form_label($this->lang->line('Name').': ', 'site_name')?>
<?=form_error('site_name')?>
</div>
<div>
<?php $extra = 'maxlength="80" size="40"'; ?>
<?=form_input('site_name', set_value('site_name', $site->name), $extra)?>
</div>
</div>
<div>
<div>
<?=form_label($this->lang->line('Text').': ', 'site_text')?>
<?=form_error('site_text')?>
</div>
<div>
<?=form_textarea('site_text', set_value('site_text', $site->text))?>
</div>
</div>
<div>
<?php $caption = ($mode == 'update')? $this->lang->line('Update'): $this->lang->line('Create'); ?>
<?=form_submit('site', $caption)?>
</div>
<?=form_fieldset_close()?>
<?=form_close();?>
</div> <!-- site_edit_mainarea -->
<!---------------------------------------------------------------------------->
<?php $this->load->view ('footer'); ?>
<!---------------------------------------------------------------------------->
</div> <!-- site_edit_content -->
</body>
</html>