|
|
|
@ -76,25 +76,28 @@ if (!empty($return)) { |
|
|
|
|
Display::display_error_message($return,false); |
|
|
|
|
} |
|
|
|
|
?> |
|
|
|
|
<form method="post" name="form" action="<?php echo api_get_self(); ?>?id=<?php echo $id; ?>">
|
|
|
|
|
<input type="hidden" name="formSent" value="1"> |
|
|
|
|
<legend><?php echo $tool_name;?> </legend>
|
|
|
|
|
<table border="0" cellpadding="5" cellspacing="0" width="550"> |
|
|
|
|
<tr> |
|
|
|
|
<td width="30%"><?php echo get_lang('SessionName') ?> </td>
|
|
|
|
|
<td width="70%"><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); ?>"></td>
|
|
|
|
|
</tr> |
|
|
|
|
<td colspan="2"> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col-md-12"> |
|
|
|
|
<form method="post" name="form" action="<?php echo api_get_self(); ?>?id=<?php echo $id; ?>" class="form-horizontal">
|
|
|
|
|
<input type="hidden" name="formSent" value="1"> |
|
|
|
|
<legend><?php echo $tool_name;?> </legend>
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label class="col-sm-3 control-label"><?php echo get_lang('SessionName') ?></label>
|
|
|
|
|
<div class="col-sm-6"> |
|
|
|
|
<input class="form-control" 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 class="col-sm-3"></div> |
|
|
|
|
</div> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<div class="col-sm-offset-3 col-sm-6"> |
|
|
|
|
<?php echo get_lang('TheTimeLimitsAreReferential');?> |
|
|
|
|
<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('EditTimeLimit') ?></a>
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div style="display: <?php if($formSent && ($coachAccessStartDate!='0000-00-00 00:00:00' || $coachAccessEndDate!='0000-00-00 00:00:00')) echo 'block'; else echo 'none'; ?>;" id="options">
|
|
|
|
|
<br> |
|
|
|
|
<div> |
|
|
|
|
<table border="0" cellpadding="5" cellspacing="0" width="100%"> |
|
|
|
|
<tr><td colspan="2"><?php echo get_lang('TheTimeLimitsAreReferential');?></td>
|
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td width="20%"><?php echo get_lang('DateStart') ?> </td>
|
|
|
|
|
<td width="80%"> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label class="col-sm-3 control-label"><?php echo get_lang('DateStart') ?></label>
|
|
|
|
|
<div class="col-sm-6"> |
|
|
|
|
<select name="day_start"> |
|
|
|
|
<option value="1">01</option> |
|
|
|
|
<option value="2" <?php if($day_start == 2) echo 'selected="selected"'; ?> >02</option>
|
|
|
|
@ -145,18 +148,19 @@ if (!empty($return)) { |
|
|
|
|
</select> |
|
|
|
|
/ |
|
|
|
|
<select name="year_start"> |
|
|
|
|
<?php |
|
|
|
|
for($i=$thisYear-5;$i <= ($thisYear+5);$i++) |
|
|
|
|
{ ?> |
|
|
|
|
<?php |
|
|
|
|
for($i=$thisYear-5;$i <= ($thisYear+5);$i++) |
|
|
|
|
{ ?> |
|
|
|
|
<option value="<?php echo $i; ?>" <?php if($year_start == $i) echo 'selected="selected"'; ?> ><?php echo $i; ?></option>
|
|
|
|
|
<?php |
|
|
|
|
} ?> |
|
|
|
|
<?php |
|
|
|
|
} ?> |
|
|
|
|
</select> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td width="20%"><?php echo get_lang('DateEnd') ?> </td>
|
|
|
|
|
<td width="80%"> |
|
|
|
|
</div> |
|
|
|
|
<div class="col-sm-3"></div> |
|
|
|
|
</div> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<label class="col-sm-3 control-label"><?php echo get_lang('DateEnd') ?></label>
|
|
|
|
|
<div class="col-sm-6"> |
|
|
|
|
<select name="day_end"> |
|
|
|
|
<option value="0">--</option> |
|
|
|
|
<option value="1" <?php if($day_end == 1) echo 'selected="selected"'; ?> >01</option>
|
|
|
|
@ -215,27 +219,24 @@ for($i=$thisYear-5;$i <= ($thisYear+5);$i++) |
|
|
|
|
{ ?> |
|
|
|
|
<option value="<?php echo $i; ?>" <?php if($year_end == $i) echo 'selected="selected"'; ?> ><?php echo $i; ?></option>
|
|
|
|
|
<?php |
|
|
|
|
} ?> |
|
|
|
|
} ?> |
|
|
|
|
</select> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
<div class="col-sm-3"></div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="form-group"> |
|
|
|
|
<div class="col-sm-offset-3 col-sm-6"> |
|
|
|
|
<button class="btn btn-success" type="submit" value="<?php echo get_lang('ModifyThisSession') ?>">
|
|
|
|
|
<?php echo get_lang('ModifyThisSession') ?> |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<br> |
|
|
|
|
</div> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td> </td> |
|
|
|
|
<td> |
|
|
|
|
<button class="save" type="submit" value="<?php echo get_lang('ModifyThisSession') ?>">
|
|
|
|
|
<?php echo get_lang('ModifyThisSession') ?></button>
|
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
<?php if($year_start=="0000") echo "setDisable(document.form.nolimit);\r\n"; ?> |
|
|
|
|
function setDisable(select){ |
|
|
|
|