camp modfications
This commit is contained in:
@@ -158,7 +158,7 @@ class camp_user {
|
|||||||
public function update_login_time($_cu_id = null) {
|
public function update_login_time($_cu_id = null) {
|
||||||
global $sql;
|
global $sql;
|
||||||
//az adott user_id-n updateli a login_time-ot
|
//az adott user_id-n updateli a login_time-ot
|
||||||
$sql->update_table('camp_user', array('cu_last_login' => date('Y-m-d')), array('cu_id' => (empty($_cu_id)?$this->get_cu_id():$_cu_id)));
|
$sql->update_table('camp_user', array('cu_last_login' => date('Y-m-d H:i:s')), array('cu_id' => (empty($_cu_id)?$this->get_cu_id():$_cu_id)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -103,9 +103,6 @@ h2 {
|
|||||||
margin: 30px auto 20px auto;
|
margin: 30px auto 20px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#submit_apply {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accept_terms_box a, .accept_terms_box a:link, .accept_terms_box a:visited, .accept_terms_box a:active {
|
.accept_terms_box a, .accept_terms_box a:link, .accept_terms_box a:visited, .accept_terms_box a:active {
|
||||||
color: #000;
|
color: #000;
|
||||||
@@ -113,4 +110,9 @@ h2 {
|
|||||||
|
|
||||||
.accept_terms_box a:hover {
|
.accept_terms_box a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
input.apply {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
@@ -72,12 +72,6 @@ if ($this->is_id()) {
|
|||||||
//lekérjük a státuszt
|
//lekérjük a státuszt
|
||||||
//TODO: objektummal
|
//TODO: objektummal
|
||||||
$status = $sql->single_variable('SELECT cas_name FROM camp_apply_status WHERE cas_id = ' . $new_apply->get_capp_status());
|
$status = $sql->single_variable('SELECT cas_name FROM camp_apply_status WHERE cas_id = ' . $new_apply->get_capp_status());
|
||||||
if ($new_apply->get_capp_status() == 3) {
|
|
||||||
$color = "green";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$color = "red";
|
|
||||||
}
|
|
||||||
$new_apply->set_capp_status($status);
|
$new_apply->set_capp_status($status);
|
||||||
$apply_array[] = $new_apply;
|
$apply_array[] = $new_apply;
|
||||||
}
|
}
|
||||||
@@ -104,7 +98,6 @@ if ($this->is_id()) {
|
|||||||
|
|
||||||
//var_dump($apply_array_3);
|
//var_dump($apply_array_3);
|
||||||
|
|
||||||
$smarty->assign('color', $color);
|
|
||||||
$smarty->assign('apply_array', $apply_array);
|
$smarty->assign('apply_array', $apply_array);
|
||||||
$smarty->assign('pending_apply_array', $apply_array_2);
|
$smarty->assign('pending_apply_array', $apply_array_2);
|
||||||
$smarty->assign('deleted_apply_array', $apply_array_3);
|
$smarty->assign('deleted_apply_array', $apply_array_3);
|
||||||
|
|||||||
@@ -99,6 +99,8 @@ $smarty->assign('error_msg', $error_msg);
|
|||||||
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('bc_mysql','root','','badminton_coach');
|
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('bc_mysql','root','','badminton_coach');
|
||||||
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
|
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
|
||||||
|
|
||||||
|
$dev = $_SERVER['HTTP_HOST'] == 'badmintoncoach.hu';
|
||||||
|
|
||||||
//var_dump($sql);
|
//var_dump($sql);
|
||||||
|
|
||||||
//echo $_GET['page'];
|
//echo $_GET['page'];
|
||||||
|
|||||||
@@ -103,7 +103,13 @@ setlocale(LC_ALL, 'hu_HU');
|
|||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<!--Start Cookie Script--> <script type="text/javascript" charset="UTF-8" src="http://chs03.cookie-script.com/s/bf70195c19da2a2b2ca37a0384845a73.js"></script> <!--End Cookie Script-->
|
<?php
|
||||||
|
if ($page->is_page() && ($page->get_page() == 'tabor' && !$dev)) {
|
||||||
|
?>
|
||||||
|
<!--Start Cookie Script--> <script type="text/javascript" charset="UTF-8" src="http://chs03.cookie-script.com/s/bf70195c19da2a2b2ca37a0384845a73.js"></script> <!--End Cookie Script-->
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -219,7 +219,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div>
|
<div>
|
||||||
<input id="submit_apply" class="button black middle" type="submit" value="Jelentkezés leadása">
|
<input id="submit_apply" class="button apply middle" type="submit" value="Jelentkezés leadása" disabled="disabled">
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@@ -373,11 +373,10 @@ $("#cc_list").change(function() {
|
|||||||
|
|
||||||
$("#accept_terms").change(function() {
|
$("#accept_terms").change(function() {
|
||||||
if ($("#accept_terms").is(':checked')) {
|
if ($("#accept_terms").is(':checked')) {
|
||||||
$("#submit_apply").show();
|
$("#submit_apply").prop('disabled', false);
|
||||||
$("#submit_apply").css('display', 'block');
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$("#submit_apply").hide();
|
$("#submit_apply").prop('disabled', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -167,7 +167,7 @@
|
|||||||
<td>
|
<td>
|
||||||
{$apply->get_capp_date()|substr:0:16}
|
{$apply->get_capp_date()|substr:0:16}
|
||||||
</td>
|
</td>
|
||||||
<td style="color: {$color}; font-weight: bold;">
|
<td style="color: {if $apply->get_capp_status() == 'Elfogadva'}green{else}red{/if}; font-weight: bold;">
|
||||||
{$apply->get_capp_status()}
|
{$apply->get_capp_status()}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<div class="list_item" {if $camp->has_pending_apply() || $camp->has_deleted_apply()}style="background-color: #ff9205;"{/if}>
|
<div class="list_item" {if $camp->has_pending_apply() || $camp->has_deleted_apply()}style="background-color: #ff9205;"{/if}>
|
||||||
<img src="/_image/camp.png">
|
<img src="/_image/camp.png">
|
||||||
{$camp->get_camp_from()|substr:0:4}.
|
{$camp->get_camp_from()|substr:0:4}.
|
||||||
{$months[$camp->get_camp_from()|date_format:"%m"]}. {$camp->get_camp_from()|date_format:"%e"}. -
|
{$months[$camp->get_camp_from()|date_format:"%m"]} {$camp->get_camp_from()|date_format:"%e"}. -
|
||||||
{if $camp->get_camp_from()|date_format:"%m" != $camp->get_camp_to()|date_format:"%m"}
|
{if $camp->get_camp_from()|date_format:"%m" != $camp->get_camp_to()|date_format:"%m"}
|
||||||
{$months[$camp->get_camp_to()|date_format:"%m"]}.
|
{$months[$camp->get_camp_to()|date_format:"%m"]}.
|
||||||
{/if}
|
{/if}
|
||||||
@@ -78,7 +78,11 @@ $( document ).ready(function() {
|
|||||||
$( ".list" ).find( divs ).hide();
|
$( ".list" ).find( divs ).hide();
|
||||||
var div_list = $( ".list" ).find( divs );
|
var div_list = $( ".list" ).find( divs );
|
||||||
|
|
||||||
open_block(div_list[0].id);
|
//open_block(div_list[0].id);
|
||||||
|
//alert(div_list.length);
|
||||||
|
for (var i = 0; i <= div_list.length - 1; i++) {
|
||||||
|
open_block(div_list[i].id);
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user