Minor fixing user UI

skala
Julio Montoya 14 years ago
parent 98cdf50612
commit 7e977dac71
  1. 33
      main/admin/session_add.php
  2. 70
      main/admin/session_edit.php

@ -231,10 +231,8 @@ $Categories = SessionManager::get_all_session_category();
</div> </div>
</div> </div>
<div class="row"> <div class="control-group">
<div class="label"> <div class="controls">
</div>
<div class="formw">
<a href="javascript://" onclick="if(document.getElementById('options').style.display == 'none'){document.getElementById('options').style.display = 'block';}else{document.getElementById('options').style.display = 'none';}"><?php echo get_lang('DefineSessionOptions') ?></a> <a href="javascript://" onclick="if(document.getElementById('options').style.display == 'none'){document.getElementById('options').style.display = 'block';}else{document.getElementById('options').style.display = 'none';}"><?php echo get_lang('DefineSessionOptions') ?></a>
<div style="display: <?php if($formSent && ($nb_days_acess_before!=0 || $nb_days_acess_after!=0)) echo 'block'; else echo 'none'; ?>;" id="options"> <div style="display: <?php if($formSent && ($nb_days_acess_before!=0 || $nb_days_acess_after!=0)) echo 'block'; else echo 'none'; ?>;" id="options">
<br /> <br />
@ -245,15 +243,10 @@ $Categories = SessionManager::get_all_session_category();
</div> </div>
</div> </div>
<div class="control-group">
<div class="controls">
<div class="row">
<div class="label">
</div>
<div class="formw">
<input id="start_limit" type="checkbox" name="start_limit" onchange="disable_starttime(this)" />
<label for="start_limit"> <label for="start_limit">
<input id="start_limit" type="checkbox" name="start_limit" onchange="disable_starttime(this)" />
<?php echo get_lang('DateStartSession');?> <?php echo get_lang('DateStartSession');?>
</label> </label>
@ -325,13 +318,10 @@ for ($i=$thisYear-5;$i <= ($thisYear+5);$i++) {
<div class="row"> <div class="control-group">
<div class="label"> <div class="controls">
</div>
<div class="formw">
<input id="end_limit" type="checkbox" name="end_limit" onchange="disable_endtime(this)" />
<label for="end_limit"> <label for="end_limit">
<input id="end_limit" type="checkbox" name="end_limit" onchange="disable_endtime(this)" />
<?php echo get_lang('DateEndSession') ?> <?php echo get_lang('DateEndSession') ?>
</label> </label>
<div id="end_date" style="display:none"> <div id="end_date" style="display:none">
@ -411,12 +401,9 @@ for ($i=$thisYear-5;$i <= ($thisYear+5);$i++) {
</div> </div>
<div class="row"> <div class="control-group">
<div class="label"> <div class="controls">
</div>
<div class="formw">
<button class="save" type="submit" value="<?php echo get_lang('NextStep') ?>"><?php echo get_lang('NextStep') ?></button> <button class="save" type="submit" value="<?php echo get_lang('NextStep') ?>"><?php echo get_lang('NextStep') ?></button>
</div> </div>
</div> </div>
</form> </form>

@ -105,24 +105,24 @@ if (!empty($return)) {
} }
?> ?>
<form method="post" name="form" action="<?php echo api_get_self(); ?>?page=<?php echo Security::remove_XSS($_GET['page']) ?>&id=<?php echo $id; ?>" style="margin:0px;"> <form class="form-horizontal" method="post" name="form" action="<?php echo api_get_self(); ?>?page=<?php echo Security::remove_XSS($_GET['page']) ?>&id=<?php echo $id; ?>" style="margin:0px;">
<fieldset> <fieldset>
<legend><?php echo $tool_name; ?></legend> <legend><?php echo $tool_name; ?></legend>
<input type="hidden" name="formSent" value="1"> <input type="hidden" name="formSent" value="1">
<div class="row"> <div class="control-group">
<div class="label"> <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); else echo api_htmlentities($infos['name'],ENT_QUOTES,$charset); ?>"> <input type="text" name="name" size="50" maxlength="50" value="<?php if($formSent) echo api_htmlentities($name,ENT_QUOTES,$charset); else echo api_htmlentities($infos['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">
<select class="chzn-select" name="id_coach" style="width:380px;" title="<?php echo get_lang('Choose'); ?>" > <select class="chzn-select" name="id_coach" style="width:380px;" title="<?php echo get_lang('Choose'); ?>" >
<option value="">----- <?php echo get_lang('None') ?> -----</option> <option value="">----- <?php echo get_lang('None') ?> -----</option>
<?php foreach($Coaches as $enreg) { ?> <?php foreach($Coaches as $enreg) { ?>
@ -135,11 +135,11 @@ if (!empty($return)) {
</select> </select>
</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 class="chzn-select" id="session_category" name="session_category" style="width:380px;" title="<?php echo get_lang('Select'); ?>"> <select class="chzn-select" id="session_category" name="session_category" style="width:380px;" title="<?php echo get_lang('Select'); ?>">
<option value="0"><?php get_lang('None'); ?></option> <option value="0"><?php get_lang('None'); ?></option>
<?php <?php
@ -152,17 +152,13 @@ if (!empty($return)) {
</select> </select>
</div> </div>
</div> </div>
<div class="row"> <div class="control-group">
<div class="label"> <div class="controls">
</div>
<div class="formw">
<a href="javascript://" onclick="if(document.getElementById('options').style.display == 'none'){document.getElementById('options').style.display = 'block';}else{document.getElementById('options').style.display = 'none';}"><?php echo get_lang('DefineSessionOptions') ?></a> <a href="javascript://" onclick="if(document.getElementById('options').style.display == 'none'){document.getElementById('options').style.display = 'block';}else{document.getElementById('options').style.display = 'none';}"><?php echo get_lang('DefineSessionOptions') ?></a>
</div> </div>
</div> </div>
<div class="row"> <div class="control-group">
<div class="label"> <div class="controls">
</div>
<div class="formw">
<div style="display: <div style="display:
<?php <?php
if($formSent){ if($formSent){
@ -189,12 +185,10 @@ if (!empty($return)) {
</div> </div>
<div class="clear"></div> <div class="clear"></div>
<div class="row"> <div class="control-group">
<div class="label"> <div class="controls">
</div>
<div class="formw">
<input id="start_limit" type="checkbox" name="start_limit" onchange="disable_starttime(this)" <?php if ($year_start!="0000") echo "checked"; ?>/>
<label for="start_limit"> <label for="start_limit">
<input id="start_limit" type="checkbox" name="start_limit" onchange="disable_starttime(this)" <?php if ($year_start!="0000") echo "checked"; ?>/>
<?php echo get_lang('DateStartSession');?> <?php echo get_lang('DateStartSession');?>
</label> </label>
<div id="start_date" style="<?php echo ($year_start=="0000") ? "display:none" : "display:block" ; ?>"> <div id="start_date" style="<?php echo ($year_start=="0000") ? "display:none" : "display:block" ; ?>">
@ -258,18 +252,13 @@ if (!empty($return)) {
?> ?>
</select> </select>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="control-group">
<div class="label"> <div class="controls">
</div>
<div class="formw">
<input id="end_limit" type="checkbox" name="end_limit" onchange="disable_endtime(this)" <?php if ($year_end!="0000") echo "checked"; ?>/>
<label for="end_limit"> <label for="end_limit">
<input id="end_limit" type="checkbox" name="end_limit" onchange="disable_endtime(this)" <?php if ($year_end!="0000") echo "checked"; ?>/>
<?php echo get_lang('DateEndSession') ?> <?php echo get_lang('DateEndSession') ?>
</label> </label>
<div id="end_date" style="<?php echo ($year_end=="0000") ? "display:none" : "display:block" ; ?>"> <div id="end_date" style="<?php echo ($year_end=="0000") ? "display:none" : "display:block" ; ?>">
@ -344,21 +333,12 @@ if (!empty($return)) {
<option value="<?php echo $key; ?>" <?php if($key == $infos['visibility']) echo 'selected="selected"'; ?>><?php echo $item; ?></option> <option value="<?php echo $key; ?>" <?php if($key == $infos['visibility']) echo 'selected="selected"'; ?>><?php echo $item; ?></option>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
</div> </div>
</div> </div>
</div> </div>
<div class="control-group">
<div class="controls">
<div class="row">
<div class="label">
</div>
<div class="formw">
<button class="save" type="submit" value="<?php echo get_lang('ModifyThisSession') ?>"><?php echo get_lang('ModifyThisSession') ?></button> <button class="save" type="submit" value="<?php echo get_lang('ModifyThisSession') ?>"><?php echo get_lang('ModifyThisSession') ?></button>
</div> </div>
</div> </div>

Loading…
Cancel
Save