<?php /* # ---------------------------------------------------------------------- # GENDER: CONTROL # ---------------------------------------------------------------------- */ $_get = new COLLECTION_GET(); $_update = new COLLECTION_UPDATE(); /* # ---------------------------------------------------------------------- # SORTING # ---------------------------------------------------------------------- */ $equal_search = array('gender_active_status', 'gender_visibility_status'); $default_sort_by = "gender_order DESC"; $pgdata = page_init($equal_search, $default_sort_by); // static/general.php $page = $pgdata['page']; $query_per_page = $pgdata['query_per_page']; $sort_by = $pgdata['sort_by']; $first_record = $pgdata['first_record']; $search_parameter = $pgdata['search_parameter']; $search_value = $pgdata['search_value']; $search_query = $pgdata['search_query']; $search = $pgdata['search']; if (isset($_REQUEST['src'])) { $_REQUEST['src'] = $_REQUEST['src']; } else { $_REQUEST['src'] = ''; }
<?php /* # ---------------------------------------------------------------------- # COLOR MANAGER - EDIT: CONTROL # ---------------------------------------------------------------------- */ $_get = new COLLECTION_GET(); $_update = new COLLECTION_UPDATE(); $color_id = filter_var($_REQUEST['collection_id'], FILTER_SANITIZE_NUMBER_INT); $color_detail = $_get->get_color($color_id); $color_visibility_active = ''; $color_visibility_inactive = ''; if ($color_detail->collection_visibility_status == 'yes') { $color_visibility_active = 'checked="checked"'; } else { if ($color_Detail->collection_visibility_status == 'no') { $color_visibility_inactive = 'checked="checked"'; } } if (isset($_POST['btn-detail-collection']) && $_POST['btn-detail-collection'] == 'Save Changes') { $collection_id = $color_detail->collection_id; $visibility = filter_var($_POST['visibility'], FILTER_SANITIZE_STRING); $name = filter_var($_POST['name'], FILTER_SANITIZE_STRING); $description = filter_var($_POST['description'], FILTER_SANITIZE_STRING); $check_name = $_get->count_name($name, $collection_id); if ($check_name->rows > 0) { $page = 'self'; $type = 'danger'; $msg = $name . ' has already existed, please choose another collection name'; set_alert($type, $msg);