multiple training coach hotfix
This commit is contained in:
@@ -170,11 +170,11 @@ class training {
|
||||
unset($_training_value_array['helpers']);
|
||||
}
|
||||
$new_tr_id = $sql->insert_into('training', $_training_value_array);
|
||||
log::register('new_training', $new_tr_id);
|
||||
if (isset($coaches)) {
|
||||
foreach ($coaches as $coach_id) {
|
||||
# beilleszt minden edzőt ehhez az edzéshez
|
||||
$new_tr_id = $sql->insert_into('training_coach', array('trc_training_tr_id' => $new_tr_id, 'trc_coach_uc_id' => $coach_id));
|
||||
log::register('new_training', $new_tr_id);
|
||||
$new_trc_id = $sql->insert_into('training_coach', array('trc_training_tr_id' => $new_tr_id, 'trc_coach_uc_id' => $coach_id));
|
||||
}
|
||||
}
|
||||
if (isset($helpers)) {
|
||||
|
||||
@@ -37,20 +37,20 @@
|
||||
|
||||
<div>
|
||||
<label class="desc" id="title1" for="coaches">Edző(k):</label>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="bold">Név</td>
|
||||
<td class="bold">E</td>
|
||||
<td class="bold">SE</td>
|
||||
</tr>
|
||||
{foreach $coach_array as $coach}
|
||||
|
||||
<div>
|
||||
<span class="coach">{$coach->get_ua_name()}</span>
|
||||
<div>
|
||||
<input type="checkbox" name="coaches[]" value="{$coach->get_ua_id()}" class="coach_type">
|
||||
<span class="coach_type_text">e.</span>
|
||||
<input type="checkbox" name="helpers[]" value="{$coach->get_ua_id()}" class="coach_type">
|
||||
<span class="coach_type_text">se.</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td class="coach">{$coach->get_ua_name()}</td>
|
||||
<td><input type="checkbox" name="coaches[]" value="{$coach->get_ua_id()}" class="coach_type"></td>
|
||||
<td><input type="checkbox" name="helpers[]" value="{$coach->get_ua_id()}" class="coach_type"></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user