touched up input form styling

This commit is contained in:
hyung-hwan 2015-03-27 07:23:20 +00:00
parent 13e1743f7e
commit c3ca69b67f
14 changed files with 581 additions and 570 deletions

View File

@ -42,27 +42,28 @@ $this->load->view (
<?php if ($message != "") print '<div id="file_delete_message" class="form_message">'.htmlspecialchars($message).'</div>'; ?>
<div class="form_container">
<?=form_open("file/delete/{$project->id}/".$this->converter->AsciiToHex($file->name))?>
<?=form_fieldset()?>
<div>
<div>
<?=form_checkbox('file_confirm', 'yes', set_checkbox('file_confirm', $file_confirm))?>
<?=$this->lang->line('MSG_SURE_TO_DELETE_THIS') ?> - <?=htmlspecialchars($file->name)?>
<?=form_error('file_confirm')?>
</div>
</div>
<div>
<div>
<?=form_hidden('file_projectid', set_value('file_projectid', $file->projectid))?>
<?=form_hidden('file_name', set_value('file_name', $file->name))?>
<?=form_checkbox('file_confirm', 'yes', set_checkbox('file_confirm', $file_confirm))?>
<?=$this->lang->line('MSG_SURE_TO_DELETE_THIS') ?> - <?=htmlspecialchars($file->name)?>
<?=form_error('file_confirm')?>
</div>
</div>
<div>
<?=form_submit('file', $this->lang->line('Delete'))?>
</div>
<div>
<?=form_hidden('file_projectid', set_value('file_projectid', $file->projectid))?>
<?=form_hidden('file_name', set_value('file_name', $file->name))?>
</div>
<div>
<?=form_submit('file', $this->lang->line('Delete'))?>
</div>
<?=form_fieldset_close()?>
<?=form_close();?>
</div>
</div>

View File

@ -79,59 +79,60 @@ $this->load->view (
<?php if ($message != "") print '<div id="file_message" class="form_message">'.htmlspecialchars($message).'</div>'; ?>
<div class="form_container">
<?=form_open_multipart("file/$mode/{$project->id}/" . $this->converter->AsciiToHex($file->name))?>
<?=form_fieldset()?>
<div class='form_input_field'>
<?=form_label($this->lang->line('Name').': ', 'file_name')?>
<?php
$extra = ($mode == 'update')? 'readonly="readonly"': '';
$extra .= 'maxlength="255" size="40"';
if ($mode == 'update')
print form_input('file_name', set_value('file_name', $file->name), $extra);
else
print form_upload('file_name', set_value('file_name', $file->name), $extra);
?>
<?=form_error('file_name');?>
</div>
<div class='form_input_field'>
<?=form_label($this->lang->line('Tag').': ', 'file_tag')?>
<?php
$extra = 'maxlength="50" size="25"';
?>
<?=form_input('file_tag', set_value('file_tag', $file->tag), $extra)?>
<?=form_error('file_tag');?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Summary').': ', 'file_summary')?>
<?=form_error('file_summary');?>
</div>
<div class='form_input_field'>
<?php
$extra = 'maxlength="255" size="80"';
?>
<?=form_input('file_summary', set_value('file_summary', $file->summary), $extra)?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Description').': ', 'file_description')?>
<a href='#' id='file_edit_mainarea_description_preview_button'><?=$this->lang->line('Preview')?></a>
<?=form_error('file_description');?>
</div>
<div class='form_input_field'>
<?=form_textarea('file_description', set_value('file_description', $file->description), 'id=file_edit_mainarea_description')?>
</div>
<div id='file_edit_mainarea_description_preview' class='form_input_preview'></div>
<div class='form_input_field'>
<?=form_label($this->lang->line('Name').': ', 'file_name')?>
<?php
$extra = ($mode == 'update')? 'readonly="readonly"': '';
$extra .= 'maxlength="255" size="40"';
if ($mode == 'update')
print form_input('file_name', set_value('file_name', $file->name), $extra);
else
print form_upload('file_name', set_value('file_name', $file->name), $extra);
?>
<?=form_error('file_name');?>
</div>
<?=form_hidden('file_projectid', set_value('file_projectid', $file->projectid))?>
<div class='form_input_field'>
<?=form_label($this->lang->line('Tag').': ', 'file_tag')?>
<?php
$extra = 'maxlength="50" size="25"';
?>
<?=form_input('file_tag', set_value('file_tag', $file->tag), $extra)?>
<?=form_error('file_tag');?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Summary').': ', 'file_summary')?>
<?=form_error('file_summary');?>
</div>
<div class='form_input_field'>
<?php
$extra = 'maxlength="255" size="80"';
?>
<?=form_input('file_summary', set_value('file_summary', $file->summary), $extra)?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Description').': ', 'file_description')?>
<a href='#' id='file_edit_mainarea_description_preview_button'><?=$this->lang->line('Preview')?></a>
<?=form_error('file_description');?>
</div>
<div class='form_input_field'>
<?=form_textarea('file_description', set_value('file_description', $file->description), 'id=file_edit_mainarea_description')?>
</div>
<div id='file_edit_mainarea_description_preview' class='form_input_preview'></div>
<?php $caption = ($mode == 'update')? $this->lang->line('Update'): $this->lang->line('Create'); ?>
<?=form_submit('file', $caption)?>
<?=form_hidden('file_projectid', set_value('file_projectid', $file->projectid))?>
<?php $caption = ($mode == 'update')? $this->lang->line('Update'): $this->lang->line('Create'); ?>
<?=form_submit('file', $caption)?>
<?=form_fieldset_close()?>
<?=form_close();?>
</div>
</div> <!-- file_mainarea -->

View File

@ -21,8 +21,8 @@
<?php
$this->load->view (
'projectbar',
array (
'projectbar',
array (
'banner' => NULL,
'page' => array (
@ -31,8 +31,8 @@ $this->load->view (
'project' => $project,
),
'ctxmenuitems' => array ()
)
'ctxmenuitems' => array ()
)
);
?>
@ -42,27 +42,28 @@ $this->load->view (
<?php if ($message != "") print '<div id="issue_delete_message" class="form_message">'.htmlspecialchars($message).'</div>'; ?>
<div class="form_container">
<?=form_open("issue/delete/{$project->id}/".$this->converter->AsciiToHex($issue->id))?>
<?=form_fieldset()?>
<div>
<div>
<?=form_checkbox('issue_confirm', 'yes', set_checkbox('issue_confirm', $issue_confirm))?>
<?=$this->lang->line('MSG_SURE_TO_DELETE_THIS')?> - <?=htmlspecialchars($issue->id)?>
<?=form_error('issue_confirm')?>
</div>
</div>
<div>
<div>
<?=form_hidden('issue_projectid', set_value('issue_projectid', $issue->projectid))?>
<?=form_hidden('issue_id', set_value('issue_id', $issue->id))?>
<?=form_checkbox('issue_confirm', 'yes', set_checkbox('issue_confirm', $issue_confirm))?>
<?=$this->lang->line('MSG_SURE_TO_DELETE_THIS')?> - <?=htmlspecialchars($issue->id)?>
<?=form_error('issue_confirm')?>
</div>
</div>
<div>
<?=form_submit('issue', $this->lang->line('Delete'))?>
</div>
<div>
<?=form_hidden('issue_projectid', set_value('issue_projectid', $issue->projectid))?>
<?=form_hidden('issue_id', set_value('issue_id', $issue->id))?>
</div>
<div>
<?=form_submit('issue', $this->lang->line('Delete'))?>
</div>
<?=form_fieldset_close()?>
<?=form_close();?>
</div>
</div> <!-- mainarea -->

View File

@ -86,71 +86,71 @@ $this->load->view (
}
?>
<div class='form_container'>
<?=form_open("issue/{$mode}/{$project->id}/".$this->converter->AsciiToHex($issue->id))?>
<?=form_fieldset()?>
<div>
<?=form_hidden('issue_id', set_value('issue_id', $issue->id))?>
<?=form_hidden('issue_projectid', set_value('issue_projectid', $issue->projectid))?>
<?=form_hidden('issue_status', set_value('issue_status', $issue->status))?>
<?=form_hidden('issue_priority', set_value('issue_priority', $issue->priority))?>
<?=form_hidden('issue_owner', set_value('issue_owner', $issue->owner))?>
</div>
<div>
<?=form_hidden('issue_id', set_value('issue_id', $issue->id))?>
<?=form_hidden('issue_projectid', set_value('issue_projectid', $issue->projectid))?>
<?=form_hidden('issue_status', set_value('issue_status', $issue->status))?>
<?=form_hidden('issue_priority', set_value('issue_priority', $issue->priority))?>
<?=form_hidden('issue_owner', set_value('issue_owner', $issue->owner))?>
</div>
<div id='issue_edit_mainarea_type' class='form_input_field'>
<?php
if ($mode == 'update')
{
print form_hidden('issue_type', set_value('issue_type', $issue->type));
}
else
{
print form_label($this->lang->line('Type').': ', 'issue_type');
print form_dropdown (
'issue_type',
$issue_type_array,
set_value('issue_type', $issue->type),
'id="issue_edit_mainarea_type"');
print form_error('issue_type');
}
<div id='issue_edit_mainarea_type' class='form_input_field'>
<?php
if ($mode == 'update')
{
print form_hidden('issue_type', set_value('issue_type', $issue->type));
}
else
{
print form_label($this->lang->line('Type').': ', 'issue_type');
print form_dropdown (
'issue_type',
$issue_type_array,
set_value('issue_type', $issue->type),
'id="issue_edit_mainarea_type"');
print form_error('issue_type');
}
?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Summary').': ', 'issue_summary')?>
<?=form_error('issue_summary');?>
</div>
<div class='form_input_field'>
<?=form_input('issue_summary',
set_value('issue_summary', $issue->summary),
'size="80" id="issue_edit_mainarea_summary"')
?>
</div>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Summary').': ', 'issue_summary')?>
<?=form_error('issue_summary');?>
</div>
<div class='form_input_field'>
<?=form_input('issue_summary',
set_value('issue_summary', $issue->summary),
'size="80" id="issue_edit_mainarea_summary"')
?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Description').': ', 'issue_description')?>
<a href='#' id='issue_edit_mainarea_description_preview_button'><?=$this->lang->line('Preview')?></a>
<?=form_error('issue_description');?>
</div>
<div class='form_input_field'>
<?php
$xdata = array (
'name' => 'issue_description',
'value' => set_value ('issue_description', $issue->description),
'id' => 'issue_edit_mainarea_description',
'rows' => 20,
'cols' => 80
);
print form_textarea ($xdata);
?>
</div>
<div id='issue_edit_mainarea_description_preview' class='form_input_preview'></div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Description').': ', 'issue_description')?>
<a href='#' id='issue_edit_mainarea_description_preview_button'><?=$this->lang->line('Preview')?></a>
<?=form_error('issue_description');?>
</div>
<div class='form_input_field'>
<?php
$xdata = array (
'name' => 'issue_description',
'value' => set_value ('issue_description', $issue->description),
'id' => 'issue_edit_mainarea_description',
'rows' => 20,
'cols' => 80
);
print form_textarea ($xdata);
?>
</div>
<div id='issue_edit_mainarea_description_preview' class='form_input_preview'></div>
<?php $caption = ($mode == 'update')? $this->lang->line('Update'): $this->lang->line('Create'); ?>
<?=form_submit('issue', $caption)?>
<?php $caption = ($mode == 'update')? $this->lang->line('Update'): $this->lang->line('Create'); ?>
<?=form_submit('issue', $caption)?>
<?=form_fieldset_close()?>
<?=form_close();?>
</div> <!-- form_container -->
</div> <!-- issue_edit_mainarea -->

View File

@ -28,7 +28,7 @@
$this->load->view (
'projectbar',
array (
'banner' => NULL,
'banner' => NULL,
'page' => array (
'type' => 'login',
@ -45,59 +45,57 @@ $this->load->view (
<?php if ($message != "") print "<div id='project_create_message' class='form_message'>$message</div>"; ?>
<div class='form_container'>
<?=form_open('main/signin/')?>
<?=form_fieldset('')?>
<?=form_hidden('user_url', set_value ('user_url', $user_url))?>
<?=form_hidden('user_url', set_value ('user_url', $user_url))?>
<div class="form_input_field">
<!--
<?=form_label($this->lang->line('Username'), 'user_name')?>
<?=form_input('user_name', set_value ('user_name', $user_name))?>
-->
<div class="login_form_field_div">
<!--
<?=form_label($this->lang->line('Username'), 'user_name')?>
<?=form_input('user_name', set_value ('user_name', $user_name))?>
-->
<?php
print form_input (
'user_name',
set_value ('user_name', $user_name),
"size='30' id='login_user_name' placeholder={$this->lang->line('Username')}"
);
?>
<?php
print form_input (
'user_name',
set_value ('user_name', $user_name),
"size='30' id='login_user_name' placeholder={$this->lang->line('Username')}"
);
?>
<?=form_error('user_name')?>
</div>
<?=form_error('user_name')?>
</div>
<div class="login_form_field_div">
<!--
<?=form_label($this->lang->line('Password'), 'user_pass')?>
<?=form_password('user_pass')?>
-->
<?php
print form_password (
'user_pass',
set_value ('user_pass', $user_pass),
"size='30' id='login_user_pass' placeholder={$this->lang->line('Password')}"
);
?>
<?=form_error('user_pass')?>
</div>
<div class="login_form_field_div">
<!--
<?=form_submit('login', $this->lang->line('Sign in'))?>
-->
<div class="form_input_field">
<!--
<?=form_label($this->lang->line('Password'), 'user_pass')?>
<?=form_password('user_pass')?>
-->
<?php
print form_password (
'user_pass',
set_value ('user_pass', $user_pass),
"size='30' id='login_user_pass' placeholder={$this->lang->line('Password')}"
);
?>
<?=form_error('user_pass')?>
</div>
<?php
print form_submit (
'login',
$this->lang->line('Sign in'),
'class="button" id="login_signin_button"'
);
?>
</div>
<?=form_fieldset_close()?>
<div class="form_input_field">
<!--
<?=form_submit('login', $this->lang->line('Sign in'))?>
-->
<?php
print form_submit (
'login',
$this->lang->line('Sign in'),
'class="button" id="login_signin_button"'
);
?>
</div>
<?=form_close();?>
</div> <!-- form_container -->
</div>

View File

@ -41,27 +41,28 @@ $this->load->view (
<?php if ($message != "") print "<div id='project_create_message' class='form_message'>$message</div>"; ?>
<div class="form_container">
<?=form_open('project/delete/'.$project->id)?>
<?=form_fieldset()?>
<div>
<div>
<?=form_checkbox('project_confirm', 'yes', set_checkbox('project_confirm', $project_confirm))?>
<?=$this->lang->line('MSG_SURE_TO_DELETE_THIS')?> - <?=htmlspecialchars($project->name)?>
<?=form_error('project_confirm')?>
</div>
</div>
<div>
<div>
<?=form_hidden('project_id', set_value('project_id', $project->id))?>
<?=form_hidden('project_name', set_value('project_name', $project->name))?>
<?=form_checkbox('project_confirm', 'yes', set_checkbox('project_confirm', $project_confirm))?>
<?=$this->lang->line('MSG_SURE_TO_DELETE_THIS')?> - <?=htmlspecialchars($project->name)?>
<?=form_error('project_confirm')?>
</div>
</div>
<div>
<?=form_submit('project', $this->lang->line('Delete'))?>
</div>
<div>
<?=form_hidden('project_id', set_value('project_id', $project->id))?>
<?=form_hidden('project_name', set_value('project_name', $project->name))?>
</div>
<div>
<?=form_submit('project', $this->lang->line('Delete'))?>
</div>
<?=form_fieldset_close()?>
<?=form_close();?>
</div>
</div>

View File

@ -81,96 +81,96 @@ $this->load->view (
if ($mode == 'update') $formurl .= '/'.$project->id;
?>
<div class='form_container'>
<?=form_open($formurl)?>
<?=form_fieldset()?>
<div class='form_input_field'>
<?=form_label($this->lang->line('ID').': ', 'project_id')?>
<?php
$extra = ($mode == 'update')? 'readonly="readonly"': '';
$extra .= 'maxlength="32" size="16"';
?>
<?=form_input('project_id', set_value('project_id', $project->id), $extra)?>
<?=form_error('project_id')?>
</div>
<div class='form_input_field'>
<?=form_label($this->lang->line('ID').': ', 'project_id')?>
<?php
$extra = ($mode == 'update')? 'readonly="readonly"': '';
$extra .= 'maxlength="32" size="16"';
?>
<?=form_input('project_id', set_value('project_id', $project->id), $extra)?>
<?=form_error('project_id')?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Name').': ', 'project_name')?>
<?=form_error('project_name')?>
</div>
<div class='form_input_field'>
<?php $extra = 'maxlength="80" size="40"'; ?>
<?=form_input('project_name', set_value('project_name', $project->name), $extra)?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Name').': ', 'project_name')?>
<?=form_error('project_name')?>
</div>
<div class='form_input_field'>
<?php $extra = 'maxlength="80" size="60"'; ?>
<?=form_input('project_name', set_value('project_name', $project->name), $extra)?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Summary').': ', 'project_summary')?>
<?=form_error('project_summary')?>
</div>
<div class='form_input_field'>
<?php $extra = 'maxlength="80" size="50"'; ?>
<?=form_input('project_summary', set_value('project_summary', $project->summary), $extra)?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Summary').': ', 'project_summary')?>
<?=form_error('project_summary')?>
</div>
<div class='form_input_field'>
<?php $extra = 'maxlength="80" size="80"'; ?>
<?=form_input('project_summary', set_value('project_summary', $project->summary), $extra)?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Description').': ', 'project_description')?>
<a href='#' id='project_edit_mainarea_description_preview_button'><?=$this->lang->line('Preview')?></a>
<?=form_error('project_description')?>
</div>
<div class='form_input_field'>
<?php
$xdata = array (
'name' => 'project_description',
'value' => set_value ('project_description', $project->description),
'id' => 'project_edit_mainarea_description',
'rows' => 20,
'cols' => 80
);
print form_textarea ($xdata);
?>
</div>
<div id='project_edit_mainarea_description_preview' class='form_input_preview'></div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Description').': ', 'project_description')?>
<a href='#' id='project_edit_mainarea_description_preview_button'><?=$this->lang->line('Preview')?></a>
<?=form_error('project_description')?>
</div>
<div class='form_input_field'>
<?php
$xdata = array (
'name' => 'project_description',
'value' => set_value ('project_description', $project->description),
'id' => 'project_edit_mainarea_description',
'rows' => 20,
'cols' => 80
);
print form_textarea ($xdata);
?>
</div>
<div id='project_edit_mainarea_description_preview' class='form_input_preview'></div>
<div class='form_input_field'>
<?=form_label($this->lang->line('Commitable').': ', 'project_commitable')?>
<?=form_checkbox('project_commitable', 'Y', set_checkbox('project_commitable', $project->commitable, $project->commitable == 'Y'))?>
<?=form_error('project_commitable')?>
<div class='form_input_field'>
<?=form_label($this->lang->line('Commitable').': ', 'project_commitable')?>
<?=form_checkbox('project_commitable', 'Y', set_checkbox('project_commitable', $project->commitable, $project->commitable == 'Y'))?>
<?=form_error('project_commitable')?>
<?=form_label($this->lang->line('Public').': ', 'project_public')?>
<?=form_checkbox('project_public', 'Y', set_checkbox('project_public', $project->public, $project->public == 'Y'))?>
<?=form_error('project_public')?>
</div>
<?=form_label($this->lang->line('Public').': ', 'project_public')?>
<?=form_checkbox('project_public', 'Y', set_checkbox('project_public', $project->public, $project->public == 'Y'))?>
<?=form_error('project_public')?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Members').': ', 'project_members')?>
<?=form_error('project_members')?>
</div>
<div class='form_input_field'>
<?php
$members = $project->members;
$member_count = count($members);
$member_string = '';
for ($i = 0; $i < $member_count; $i++)
{
if ($i >= 1) $member_string .= ',';
$member_string .= $members[$i];
}
<div class='form_input_label'>
<?=form_label($this->lang->line('Members').': ', 'project_members')?>
<?=form_error('project_members')?>
</div>
<div class='form_input_field'>
<?php
$members = $project->members;
$member_count = count($members);
$member_string = '';
for ($i = 0; $i < $member_count; $i++)
{
if ($i >= 1) $member_string .= ',';
$member_string .= $members[$i];
}
$xdata = array (
'name' => 'project_members',
'value' => set_value ('project_members', $member_string),
'id' => 'project_edit_mainarea_members',
'rows' => 2,
'cols' => 80
);
print form_textarea ($xdata);
?>
</div>
$xdata = array (
'name' => 'project_members',
'value' => set_value ('project_members', $member_string),
'id' => 'project_edit_mainarea_members',
'rows' => 2,
'cols' => 80
);
print form_textarea ($xdata);
?>
</div>
<?php $caption = ($mode == 'update')? $this->lang->line('Update'): $this->lang->line('Create'); ?>
<?=form_submit('project', $caption)?>
<?php $caption = ($mode == 'update')? $this->lang->line('Update'): $this->lang->line('Create'); ?>
<?=form_submit('project', $caption)?>
<?=form_fieldset_close()?>
<?=form_close();?>
</div> <!-- form_container -->
</div> <!-- project_edit_mainarea -->

View File

@ -40,27 +40,28 @@ $this->load->view (
<?php if ($message != "") print "<div id='site_create_message' class='form_message'>$message</div>"; ?>
<div class="form_container">
<?=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)?> (<?=$site->id?>)
<?=form_error('site_confirm')?>
</div>
</div>
<div>
<div>
<?=form_hidden('site_id', set_value('site_id', $site->id))?>
<?=form_hidden('site_name', set_value('site_name', $site->name))?>
<?=form_checkbox('site_confirm', 'yes', set_checkbox('site_confirm', $site_confirm))?>
<?=$this->lang->line('MSG_SURE_TO_DELETE_THIS')?> - <?=htmlspecialchars($site->name)?> (<?=$site->id?>)
<?=form_error('site_confirm')?>
</div>
</div>
<div>
<?=form_submit('site', $this->lang->line('Delete'))?>
</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>
</div>

View File

@ -83,49 +83,49 @@ $this->load->view (
if ($mode == 'update') $formurl .= '/'.$site->id;
?>
<div class='form_container'>
<?=form_open($formurl, 'id="site_edit_form"')?>
<?=form_fieldset()?>
<div class='form_input_field'>
<?=form_label($this->lang->line('Language').': ', 'site_id')?>
<?php
$extra = ($mode == 'update')? 'readonly="readonly"': '';
$extra .= 'maxlength="32" size="16" class="id"';
?>
<div class='form_input_field'>
<?=form_label($this->lang->line('Language').': ', 'site_id')?>
<?php
$extra = ($mode == 'update')? 'readonly="readonly"': '';
$extra .= 'maxlength="32" size="16" class="id"';
?>
<?=form_input('site_id',
set_value('site_id', $site->id),
$extra)
?>
<?=form_error('site_id')?>
</div>
<?=form_input('site_id',
set_value('site_id', $site->id),
$extra)
?>
<?=form_error('site_id')?>
</div>
<div class='form_input_field'>
<?=form_label($this->lang->line('Name').': ', 'site_name')?>
<?=form_input('site_name',
set_value('site_name', $site->name),
'maxlength="80" size="40" class="name"');
?>
<?=form_error('site_name')?>
</div>
<div class='form_input_field'>
<?=form_label($this->lang->line('Name').': ', 'site_name')?>
<?=form_input('site_name',
set_value('site_name', $site->name),
'maxlength="80" size="40" class="name"');
?>
<?=form_error('site_name')?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Text').': ', 'site_text')?>
<a href='#' id='site_edit_mainarea_text_preview_button'><?=$this->lang->line('Preview')?></a>
<?=form_error('site_text')?>
</div>
<div class='form_input_field'>
<?=form_textarea('site_text',
set_value('site_text', $site->text),
'class="text" id="site_edit_mainarea_text"')
?>
</div>
<div id='site_edit_mainarea_text_preview' class='form_input_preview'></div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Text').': ', 'site_text')?>
<a href='#' id='site_edit_mainarea_text_preview_button'><?=$this->lang->line('Preview')?></a>
<?=form_error('site_text')?>
</div>
<div class='form_input_field'>
<?=form_textarea('site_text',
set_value('site_text', $site->text),
'class="text" id="site_edit_mainarea_text"')
?>
</div>
<div id='site_edit_mainarea_text_preview' class='form_input_preview'></div>
<?php $caption = ($mode == 'update')? $this->lang->line('Update'): $this->lang->line('Create'); ?>
<?=form_submit('site', $caption)?>
<?=form_fieldset_close()?>
<?php $caption = ($mode == 'update')? $this->lang->line('Update'): $this->lang->line('Create'); ?>
<?=form_submit('site', $caption)?>
<?=form_close();?>
</div> <!-- form_container -->
</div> <!-- site_edit_mainarea -->

View File

@ -61,43 +61,35 @@ $this->load->view (
<div id="user_settings_mainarea_result">
<div class="form_container">
<?=form_open_multipart('user/settings/')?>
<?=form_fieldset($this->lang->line('Code'))?>
<?=form_checkbox('code_hide_line_num',
'Y', $settings->code_hide_line_num == 'Y')
?>
<?= $this->lang->line('USER_MSG_HIDE_LINE_NUMBER')?>
<?=form_checkbox('code_hide_line_num',
'Y', $settings->code_hide_line_num == 'Y')
<?=form_checkbox('code_hide_details',
'Y', $settings->code_hide_details == 'Y')
?>
<?= $this->lang->line('USER_MSG_HIDE_DETAILS')?>
<div class='form_input_field'>
<?=form_label($this->lang->line('Icon').': ', 'icon_img_file_name')?>
<?php
$extra = 'maxlength="255" size="40"';
print form_upload('icon_img_file_name', set_value('icon_img_file_name', ''), $extra);
?>
<?= $this->lang->line('USER_MSG_HIDE_LINE_NUMBER')?>
<?=form_checkbox('code_hide_details',
'Y', $settings->code_hide_details == 'Y')
?>
<?= $this->lang->line('USER_MSG_HIDE_DETAILS')?>
<div class='form_input_field'>
<?=form_label($this->lang->line('Icon').': ', 'icon_img_file_name')?>
<?php
$extra = 'maxlength="255" size="40"';
print form_upload('icon_img_file_name', set_value('icon_img_file_name', ''), $extra);
?>
<?=form_error('icon_img_file_name');?>
(.png, max. 100x100)
</div>
<?=form_fieldset_close()?>
<!--
<?=form_fieldset($this->lang->line('Issue'))?>
<?=form_fieldset_close()?>
-->
<?=form_error('icon_img_file_name');?>
(.png, max. 100x100)
</div>
<div class="buttons">
<?=form_submit('settings', $this->lang->line('OK'))?>
</div>
<?=form_close();?>
</div>
</div> <!-- user_settings_mainarea_result -->

View File

@ -21,8 +21,8 @@
<?php
$this->load->view (
'projectbar',
array (
'projectbar',
array (
'banner' => NULL,
'page' => array (
@ -31,8 +31,8 @@ $this->load->view (
'project' => $project,
),
'ctxmenuitems' => array ()
)
'ctxmenuitems' => array ()
)
);
?>
@ -42,27 +42,28 @@ $this->load->view (
<?php if ($message != "") print '<div id="wiki_delete_message" class="form_message">'.htmlspecialchars($message).'</div>'; ?>
<div class="form_container">
<?=form_open("wiki/delete/{$project->id}/".$this->converter->AsciiToHex($wiki->name))?>
<?=form_fieldset()?>
<div>
<div>
<?=form_checkbox('wiki_confirm', 'yes', set_checkbox('wiki_confirm', $wiki_confirm))?>
<?=$this->lang->line('MSG_SURE_TO_DELETE_THIS')?> - <?=htmlspecialchars($wiki->name)?>
<?=form_error('wiki_confirm')?>
</div>
</div>
<div>
<div>
<?=form_hidden('wiki_projectid', set_value('wiki_projectid', $wiki->projectid))?>
<?=form_hidden('wiki_name', set_value('wiki_name', $wiki->name))?>
<?=form_checkbox('wiki_confirm', 'yes', set_checkbox('wiki_confirm', $wiki_confirm))?>
<?=$this->lang->line('MSG_SURE_TO_DELETE_THIS')?> - <?=htmlspecialchars($wiki->name)?>
<?=form_error('wiki_confirm')?>
</div>
</div>
<div>
<?=form_submit('wiki', $this->lang->line('Delete'))?>
</div>
<div>
<?=form_hidden('wiki_projectid', set_value('wiki_projectid', $wiki->projectid))?>
<?=form_hidden('wiki_name', set_value('wiki_name', $wiki->name))?>
</div>
<div>
<?=form_submit('wiki', $this->lang->line('Delete'))?>
</div>
<?=form_fieldset_close()?>
<?=form_close();?>
</div>
</div> <!-- mainarea -->

View File

@ -110,113 +110,112 @@ $this->load->view (
<?php if ($message != "") print '<div id="wiki_edit_message" class="form_message">'.htmlspecialchars($message).'</div>'; ?>
<div id="wiki_edit_mainarea_form">
<div class="form_container">
<?=form_open_multipart("wiki/{$mode}/{$project->id}/".$this->converter->AsciiToHex($wiki->name))?>
<!-- <?=form_fieldset()?> field set is problematic. if text contains a wide pre block, preview with multi-columns overflows beyond its container. -->
<div class='form_input_label'>
<?=form_label($this->lang->line('Name').': ', 'wiki_name')?>
<?=form_error('wiki_name');?>
</div>
<div class='form_input_field'>
<?php
$extra = 'maxlength="80" size="40" id="wiki_edit_mainarea_name"';
//$extra .= ($mode == 'update')? ' readonly="readonly"': '';
?>
<?=form_input('wiki_name', set_value('wiki_name', $wiki->name), $extra)?>
<?=($mode == 'update')? form_hidden('wiki_original_name', set_value('wiki_original_name', $wiki->name)): ''?>
</div>
<div class='form_input_label'>
<?=form_label($this->lang->line('Text').': ', 'wiki_text')?>
<a href='#' id='wiki_edit_mainarea_text_preview_button'><?=$this->lang->line('Preview')?></a>
<div class='form_input_label'>
<?=form_label($this->lang->line('Name').': ', 'wiki_name')?>
<?=form_error('wiki_name');?>
</div>
<div class='form_input_field'>
<?php
$extra = 'maxlength="80" size="40" id="wiki_edit_mainarea_name"';
//$extra .= ($mode == 'update')? ' readonly="readonly"': '';
?>
<?=form_input('wiki_name', set_value('wiki_name', $wiki->name), $extra)?>
<?=($mode == 'update')? form_hidden('wiki_original_name', set_value('wiki_original_name', $wiki->name)): ''?>
</div>
<?php
$attrs = array (
'name' => 'wiki_columns',
'id' => 'wiki_edit_mainarea_text_column_count',
'value' => set_value('wiki_columns', $wiki->columns),
'size' => '2',
'min' => '1',
'max' => '9',
'type' => 'number');
print form_input ($attrs);
?>
<?=$this->lang->line('Columns')?>(1-9)
<div class='form_input_label'>
<?=form_label($this->lang->line('Text').': ', 'wiki_text')?>
<a href='#' id='wiki_edit_mainarea_text_preview_button'><?=$this->lang->line('Preview')?></a>
<?=form_error('wiki_text');?>
</div>
<div class='form_input_field'>
<?php
$xdata = array (
'name' => 'wiki_text',
'value' => set_value ('wiki_text', $wiki->text),
'id' => 'wiki_edit_mainarea_text',
'rows' => 20,
'cols' => 80
);
print form_textarea ($xdata);
?>
</div>
<div id='wiki_edit_mainarea_text_preview' class='form_input_preview'></div>
<?php if (!empty($wiki->attachments)): ?>
<div class='form_input_label'>
<?=form_label($this->lang->line('WIKI_ATTACHMENTS').': ', 'wiki_edit_attachment_list')?>
<?=form_error('wiki_attachment_list');?>
</div>
<div class='form_input_field'>
<ul id='wiki_edit_attachment_list'>
<?php
foreach ($wiki->attachments as $att)
{
$hexattname =
$this->converter->AsciiToHex($att->name) .
'@' .
$this->converter->AsciiToHex($att->encname);
$escattname = htmlspecialchars($att->name);
print '<li>';
print "<input type='checkbox' name='wiki_delete_attachment[]' value='{$hexattname}' title='Check to delete {$escattname}'/>";
print $escattname;
print '</li>';
}
?>
</ul>
</div>
<?php endif; ?>
<div class='form_input_label'>
<?=form_label($this->lang->line('WIKI_NEW_ATTACHMENTS').': ', 'wiki_edit_new_attachment_list')?>
<a href='#' id='wiki_edit_more_new_attachment'>
<?=$this->lang->line('WIKI_MORE_NEW_ATTACHMENTS')?>
</a>
<?=form_error('wiki_edit_new_attachment_list');?>
</div>
<div class='form_input_field'>
<ul id='wiki_edit_new_attachment_list'>
<li>
<input type='file' name='wiki_new_attachment_0' />
<!--<input type='checkbox' name='wiki_delete_attachment[]' value='delete'/>Delete-->
</li>
</ul>
</div>
<?php
$attrs = array (
'name' => 'wiki_columns',
'id' => 'wiki_edit_mainarea_text_column_count',
'value' => set_value('wiki_columns', $wiki->columns),
'size' => '2',
'min' => '1',
'max' => '9',
'type' => 'number');
print form_input ($attrs);
?>
<div>
<?=form_hidden('wiki_projectid', set_value('wiki_projectid', $wiki->projectid))?>
</div>
<?=$this->lang->line('Columns')?>(1-9)
<div>
<?php $caption = ($mode == 'update')? $this->lang->line('Update'): $this->lang->line('Create'); ?>
<?=form_submit('wiki', $caption)?>
</div>
<?=form_error('wiki_text');?>
</div>
<div class='form_input_field'>
<?php
$xdata = array (
'name' => 'wiki_text',
'value' => set_value ('wiki_text', $wiki->text),
'id' => 'wiki_edit_mainarea_text',
'rows' => 20,
'cols' => 80
);
print form_textarea ($xdata);
?>
</div>
<div id='wiki_edit_mainarea_text_preview' class='form_input_preview'></div>
<?php if (!empty($wiki->attachments)): ?>
<div class='form_input_label'>
<?=form_label($this->lang->line('WIKI_ATTACHMENTS').': ', 'wiki_edit_attachment_list')?>
<?=form_error('wiki_attachment_list');?>
</div>
<div class='form_input_field'>
<ul id='wiki_edit_attachment_list'>
<?php
foreach ($wiki->attachments as $att)
{
$hexattname =
$this->converter->AsciiToHex($att->name) .
'@' .
$this->converter->AsciiToHex($att->encname);
$escattname = htmlspecialchars($att->name);
print '<li>';
print "<input type='checkbox' name='wiki_delete_attachment[]' value='{$hexattname}' title='Check to delete {$escattname}'/>";
print $escattname;
print '</li>';
}
?>
</ul>
</div>
<?php endif; ?>
<div class='form_input_label'>
<?=form_label($this->lang->line('WIKI_NEW_ATTACHMENTS').': ', 'wiki_edit_new_attachment_list')?>
<a href='#' id='wiki_edit_more_new_attachment'>
<?=$this->lang->line('WIKI_MORE_NEW_ATTACHMENTS')?>
</a>
<?=form_error('wiki_edit_new_attachment_list');?>
</div>
<div class='form_input_field'>
<ul id='wiki_edit_new_attachment_list'>
<li>
<input type='file' name='wiki_new_attachment_0' />
<!--<input type='checkbox' name='wiki_delete_attachment[]' value='delete'/>Delete-->
</li>
</ul>
</div>
<div>
<?=form_hidden('wiki_projectid', set_value('wiki_projectid', $wiki->projectid))?>
</div>
<div>
<?php $caption = ($mode == 'update')? $this->lang->line('Update'): $this->lang->line('Create'); ?>
<?=form_submit('wiki', $caption)?>
</div>
<!-- <?=form_fieldset_close()?> -->
<?=form_close();?>
</div> <!-- wiki_edit_mainarea_form -->
</div> <!-- form_container -->
</div> <!-- wiki_edit_mainarea -->

View File

@ -135,8 +135,8 @@ body {
text-transform: uppercase;
white-space: nowrap;
//text-shadow: 2px 8px 6px rgba(0,0,0,0.2),
// 0px -5px 35px rgba(255,255,255,0.3);
/*text-shadow: 2px 8px 6px rgba(0,0,0,0.2),
0px -5px 35px rgba(255,255,255,0.3); */
text-shadow: 1px 1px 0 #7A7A7A;
letter-spacing: 0.1em;
}
@ -213,46 +213,108 @@ body {
background-color: #BBCCDD;
}
.content .mainarea .form_container {
padding: 0.3em 0.5em 0.3em 0.5em;
border: 1px solid #BBCCDD;
line-height: 2.2em;
margin: 0;
}
.content .mainarea form {
margin: 0;
}
.content .mainarea form fieldset {
margin: 0;
border: 1px solid #BBCCDD;
}
.content .mainarea form label {
font-style: italic;
.content .mainarea form label
{
font-weight: bold;
}
.content .mainarea form input[type="text"] {
border: 1px solid #BBCCDD;
}
.content .mainarea form input[type="password"] {
border: 1px solid #BBCCDD;
}
.content .mainarea form textarea {
border: 1px solid #BBCCDD;
font-family: consolas, "Andale Mono", monospace;
font-size: inherit;
}
.content .mainarea .form_input_label {
margin-bottom: 0.2em;
.content .mainarea form input
{
vertical-align: middle;
border: none;
-moz-box-shadow: 0 2px 4px #bbb inset;
-webkit-box-shadow: 0 2px 4px #BBB inset;
box-shadow: 0 2px 4px #BBB inset;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
height: 1.8em;
font-size: inherit;
padding-left: 0.2em;
padding-right: 0.2em;
}
.content .mainarea .form_input_label .ui-button {
.content .mainarea form input:focus {
background-color: #E1E1E1;
outline: 0;
}
.content .mainarea form input[type="submit"]
{
cursor: pointer;
height: 2em;
vertical-align: middle;
padding-left: 5px;
padding-right: 5px;
text-transform: uppercase;
background: #3498db;
background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
background-image: -moz-linear-gradient(top, #3498db, #2980b9);
background-image: -ms-linear-gradient(top, #3498db, #2980b9);
background-image: -o-linear-gradient(top, #3498db, #2980b9);
background-image: linear-gradient(to bottom, #3498db, #2980b9);
-webkit-border-radius: 28;
-moz-border-radius: 28;
border-radius: 5px;
text-shadow: 1px 1px 3px #666666;
color: #ffffff;
text-decoration: none;
font-size: 1em;
border: 0 none;
}
.content .mainarea form input[type="submit"]:hover
{
background: #3cb0fd;
background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
text-decoration: none;
}
.content .mainarea form textarea
{
vertical-align: middle;
border: 1px solid #B9BDC1;
-moz-box-shadow: 0 2px 4px #bbb inset;
-webkit-box-shadow: 0 2px 4px #BBB inset;
box-shadow: 0 2px 4px #BBB inset;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
font-family: consolas, "Andale Mono", monospace;
font-size: inherit;
padding: 0.2em 0.2em 0.2em 0.2em;
}
.content .mainarea form textarea:focus
{
background-color: #E1E1E1;
outline: 0;
}
.content .mainarea form .ui-button
{
/* jquery-ui button inside the form */
font-size: 80%;
font-style: italic;
}
.content .mainarea .form_input_field {
margin-bottom: 0.5em;
}
.content .mainarea .form_input_preview {
@ -260,14 +322,13 @@ body {
/*border: 1px solid #DDDDDD;*/
background-color: #FFFFF0;
font-size: 90%;
padding: 0.2em 0.2em 0.2em 0.2em;
line-height: 1.2em;
}
.content .mainarea .form_input_preview pre {
/*background-color: inherit;*/
background-color: #F8F8FA;
padding: 0.3em;
/*background-color: #FDF5D6;*/
/*border: none;*/
padding: 0.2em 0.2em 0.2em 0.2em;
}
.content .mainarea .icon {
@ -732,96 +793,48 @@ pre.prettyprint li.L9 { background: #eee }
/* ================ login page =================== */
#login_user_name {
#login_user_name
{
background: url("images/username.png") no-repeat scroll 0% 0% rgb(234, 231, 231);
background-position: 0px 3px !important;
padding-left: 24px;
height: 2.2em;
vertical-align: middle;
border: 1px solid #B9BDC1;
-moz-box-shadow: 0 2px 4px #bbb inset;
-webkit-box-shadow: 0 2px 4px #BBB inset;
box-shadow: 0 2px 4px #BBB inset;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
font-size: 1em;
border: 0 none;
}
#login_user_name:focus {
background-color: #E7E8E7;
#login_user_name:focus
{
background-color: #E1E1E1;
outline: 0;
}
#login_user_pass {
#login_user_pass
{
background: url("images/password.png") no-repeat scroll 0% 0% rgb(234, 231, 231);
background-position: 0px 3px !important;
padding-left: 24px;
height: 2.2em;
vertical-align: middle;
border: 1px solid #B9BDC1;
-moz-box-shadow: 0 2px 4px #bbb inset;
-webkit-box-shadow: 0 2px 4px #BBB inset;
box-shadow: 0 2px 4px #BBB inset;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
font-size: 1em;
border: 0 none;
}
#login_user_pass:focus {
background-color: #E7E8E7;
#login_user_pass:focus
{
background-color: #E1E1E1;
outline: 0;
}
#login_signin_button {
cursor: pointer;
height: 2em;
vertical-align: middle;
padding-left: 5px;
padding-right: 5px;
text-transform: uppercase;
background: #3498db;
background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
background-image: -moz-linear-gradient(top, #3498db, #2980b9);
background-image: -ms-linear-gradient(top, #3498db, #2980b9);
background-image: -o-linear-gradient(top, #3498db, #2980b9);
background-image: linear-gradient(to bottom, #3498db, #2980b9);
-webkit-border-radius: 28;
-moz-border-radius: 28;
border-radius: 5px;
text-shadow: 1px 1px 3px #666666;
color: #ffffff;
text-decoration: none;
font-size: 1em;
border: 0 none;
#login_signin_button
{
/* make it higher than the standard submit buttons */
height: 2.5em;
}
#login_signin_button:hover {
background: #3cb0fd;
background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
text-decoration: none;
}
#login_mainarea .login_form_field_div { // keep it similar to taskbar
#login_mainarea .form_container form .form_input_field
{
/* keep it similar to taskbar and make it higher than normal form */
text-transform: uppercase;
padding-top: 0.3em;
padding-bottom: 0.3em;
vertical-align: middle;
font-size: 1em;
}

View File

@ -65,3 +65,6 @@
column-gap: 2em;
}
#wiki_edit_mainarea_text_column_count {
font-size: 80%;
}