Minor fixing form

skala
Julio Montoya 14 years ago
parent 6469a02f13
commit 5ad7c58a9c
  1. 37
      main/admin/session_add.php

@ -140,39 +140,34 @@ $thisYear=date('Y');
$thisMonth=date('m'); $thisMonth=date('m');
$thisDay=date('d'); $thisDay=date('d');
$tool_name = get_lang('AddSession'); $tool_name = get_lang('AddSession');
//display the header
Display::display_header($tool_name); Display::display_header($tool_name);
if (!empty($return)) { if (!empty($return)) {
Display::display_error_message($return,false); Display::display_error_message($return,false);
} }
?>
<form method="post" name="form" action="<?php echo api_get_self(); ?>" style="margin:0px;">
<input type="hidden" name="formSent" value="1">
<?php
echo '<div class="actions">'; echo '<div class="actions">';
echo '<a href="../admin/index.php">'.Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('PlatformAdmin'),'',ICON_SIZE_MEDIUM).'</a>'; echo '<a href="../admin/index.php">'.Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('PlatformAdmin'),'',ICON_SIZE_MEDIUM).'</a>';
echo '</div>'; echo '</div>';
?>
<div class="row"> ?>
<div class="label"> <form class="form-horizontal" method="post" name="form" action="<?php echo api_get_self(); ?>" style="margin:0px;">
<input type="hidden" name="formSent" value="1">
<div class="control-group">
<label class="control-label">
<?php echo get_lang('SessionName') ?> <?php echo get_lang('SessionName') ?>
</div> </label>
<div class="formw"> <div class="controls">
<input type="text" name="name" size="50" maxlength="50" value="<?php if($formSent) echo api_htmlentities($name,ENT_QUOTES,$charset); ?>"> <input type="text" name="name" size="50" maxlength="50" value="<?php if($formSent) echo api_htmlentities($name,ENT_QUOTES,$charset); ?>">
</div> </div>
</div> </div>
<div class="row"> <div class="control-group">
<div class="label"> <label class="control-label">
<?php echo get_lang('CoachName') ?> <?php echo get_lang('CoachName') ?>
</div> </label>
<div class="formw"> <div class="controls">
<?php <?php
@ -213,18 +208,16 @@ if (intval($count_users)<50) {
} }
$Categories = SessionManager::get_all_session_category(); $Categories = SessionManager::get_all_session_category();
?> ?>
</div> </div>
</div> </div>
<div class="row"> <div class="control-group">
<div class="label"> <label class="control-label">
<?php echo get_lang('SessionCategory') ?> <?php echo get_lang('SessionCategory') ?>
</div> </label>
<div class="formw"> <div class="controls">
<select id="session_category" class="chzn-select" name="session_category" style="width:350px;" title="<?php echo get_lang('Select'); ?>"> <select id="session_category" class="chzn-select" name="session_category" style="width:350px;" title="<?php echo get_lang('Select'); ?>">
<option value="0"><?php get_lang('None'); ?></option> <option value="0"><?php get_lang('None'); ?></option>
<?php <?php

Loading…
Cancel
Save