/** functions takes site_has_cat_id paramater and decides to read local passed or one stored ion session. A wrapper basicly * * @param type $site_has_cat_id */ function read_site_has_cat_id($site_has_cat_id) { if (empty($site_has_cat_id)) { return get_site_has_cat_id_session(); } else { return $site_has_cat_id; } }
<div>First content panel</div> <h3>Second header</h3> <div>Second content panel</div> </div> <div class="ui-widget"> <label for="atts">ATTS: </label> <input id="atts"> </div> --> <?php $site_has_att_id = 0; close_processing_post(); $if_print_detected = get_site_has_cat_id_session(); if (empty($if_print_detected)) { att_search(); //here a pair of functions att_search and get_process_att } echo $site_has_att_id = get_process_att(); $_POST['post_processed']; insert_goods(); //inserts into db a post processed new items //processs // echo '<h3>NETT weight</h3>'; // echo '<div>weight'; if (empty($if_print_detected)) { //show all sites and atts needs to be processed $num = draw_detected(detect_pre_processed_items(0)); $num;