//-------------------------------FORM----------------------------------------- start_form(); //form input if (isset($_POST['AddNew'])) { start_table("class='form'"); text_field('Store Name: ', 'store_name', $val_selected['store_name'], true); text_area('Description: ', 'description', $val_selected['description']); text_field('Address: ', 'address', $val_selected['address'], false); text_field('Contact: ', 'contact', $val_selected['contact'], false); text_with_list_users("Person: ", "person_id", $val_selected['person_id'], false, true, "-", "level='" . USER_STORE . "'"); start_row(); start_column(); space(); //spasi end_column(); start_column(); if ($_POST['AddNew'] != 'update') { //add new submit_button('submit', 'Add'); } else { //update input_hidden('id', $val_selected['id']); submit_button('submit_update', 'Update'); } end_column(); end_row(); end_table(); link_text("?" . $parameter_key . "kd_tabel=tb_stores", '<- kembali'); } else { //-------------------------------DISPLAY----------------------------------------- submit_button('AddNew', 'Add New');
start_email(); start_row('style1'); start_column('style1'); append_block('image', 'http://boardinhand.com/imgs/logo.png'); end_column(); start_column('style1'); append_block('header', 'Board in Hand'); append_block('text', 'High Quality Skateboard Art'); end_column(); end_row(); start_row('style2'); start_column('style2'); append_block('header', 'Holiday Deals'); append_block('text', 'An e-commerce site selling high quality, hand decorated skateboard decks. Board in Hand sells decks as art pieces as well as complete decks that are ready to ride!'); end_column(); start_column('style2'); append_block('image', 'http://boardinhand.com/imgs/decks/thumb/Hypnosis.png'); end_column(); start_column('style2'); append_block('image', 'http://boardinhand.com/imgs/decks/thumb/Decktrio.png'); end_column(); end_row(); start_row('style1'); start_column('style1'); append_block('image', 'http://boardinhand.com/imgs/cart.png'); end_column(); start_column('style1'); append_block('header', 'View Our Shop'); end_column(); end_row(); end_email();
$head = array('No.', 'Item Code', 'Item Name', 'Id Category', 'Category', 'Action'); } head_table($head); $no = 1; while ($row = db_fetch($query)) { start_row("class='odd gradeX'"); text_cell($no, "align='center'"); if (empty($id_item)) { //tidak ada parameter get id_item text_cell($row['item_code'], "align='left'"); text_cell($row['item_name'], "align='left'"); } text_cell($row['id_category'], "align='center'"); text_cell($row['category_name'], "align='left'"); //text_cell($row['description'], "align='left'"); start_column("align='center' "); delete_link('tb_maping_item_category', $row['id'], $_SESSION['key'], "", "item=" . $id_item); end_column(); end_row(); $no++; } //ini satu item yang akan dikirim ke halaman form butuh item nya biar tidak bisa dirubah $item_ = $find_item['item_code'] . " >> " . $find_item['item_name']; if (!empty($id_item)) { input_hidden("item_name", $item_); input_hidden("id_item", $id_item); //parameter post id item untuk dikirim ke halaman form } end_table(); if (!empty($id_item)) { link_text("?" . $parameter_key . "kd_tabel=tb_items", '<- kembali', "class='btn btn-default'");
append_block('image', 'email/themes/Celebration/imgs/celebration2.jpg'); end_column(); end_row(); start_row('style2'); start_column('style2'); append_block('header', 'You’re Invited!'); append_block('text', 'Come over this Sunday for a day of friends, family and fun!'); end_column(); end_row(); start_row('style2'); start_column('style2'); append_block('image', 'email/themes/Celebration/imgs/map.png'); end_column(); end_row(); start_row('style1'); start_column('style1'); append_block('text', 'Bla'); end_column(); start_column('style1'); append_block('text', 'Bla'); end_column(); start_column('style1'); append_block('text', 'Bla'); end_column(); end_row(); start_row('style2'); start_column('style2'); append_block('text', 'Come over this Sunday for a day of friends, family and fun!'); end_column(); end_row(); end_email();