$contents[] = array('text' => '<br /><a href="" onclick="manufacturers.submit(); return false" class="btn btn-default btn-margin-infobox" title=" ' . BUTTON_TITLE_SAVE . ' ">' . BUTTON_TEXT_SAVE . '</a><a href="' . xos_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $_GET['mID']) . '" class="btn btn-default btn-margin-infobox" title=" ' . BUTTON_TITLE_CANCEL . ' ">' . BUTTON_TEXT_CANCEL . '</a><br /> '); break; case 'edit': $heading_title = '<b>' . TEXT_HEADING_EDIT_MANUFACTURER . '</b>'; $form_tag = xos_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=save', 'post', 'enctype="multipart/form-data"'); $contents[] = array('text' => TEXT_EDIT_INTRO); $manufacturer_inputs_string = ''; $languages = xos_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $manufacturer_inputs_string .= '<br /><div class="input-group"><span class="input-group-addon">' . xos_image(DIR_WS_CATALOG_IMAGES . 'catalog/templates/' . DEFAULT_TPL . '/' . $languages[$i]['directory'] . '/' . $languages[$i]['image'], $languages[$i]['name']) . '</span>' . xos_draw_input_field('manufacturers_name[' . $languages[$i]['id'] . ']', xos_get_manufacturers_name($mInfo->manufacturers_id, $languages[$i]['id']), 'class="form-control"') . '</div>'; } $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_NAME . $manufacturer_inputs_string); $manufacturer_inputs_string = ''; $languages = xos_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $manufacturer_inputs_string .= '<br /><div class="input-group"><span class="input-group-addon">' . xos_image(DIR_WS_CATALOG_IMAGES . 'catalog/templates/' . DEFAULT_TPL . '/' . $languages[$i]['directory'] . '/' . $languages[$i]['image'], $languages[$i]['name']) . '</span>' . xos_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', xos_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']), 'class="form-control"') . '</div>'; } $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string); if ($mInfo->manufacturers_image) { $contents[] = array('text' => '<br />' . xos_image(DIR_WS_CATALOG_IMAGES . 'manufacturers/' . $mInfo->manufacturers_image, $mInfo->manufacturers_name) . '<br /><b>' . $mInfo->manufacturers_image . '</b><div class="checkbox"><label>' . xos_draw_selection_field('delete_manufacturer_image', 'checkbox', 'true') . TEXT_DELETE . '</label></div>' . xos_draw_hidden_field('current_manufacturer_image', $mInfo->manufacturers_image)); } $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_IMAGE . '<br />' . xos_draw_file_field('manufacturers_image') . '<br />'); $contents[] = array('text' => '<br /><a href="" onclick="manufacturers.submit(); return false" class="btn btn-default btn-margin-infobox" title=" ' . BUTTON_TITLE_SAVE . ' ">' . BUTTON_TEXT_SAVE . '</a><a href="' . xos_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id) . '" class="btn btn-default btn-margin-infobox" title=" ' . BUTTON_TITLE_CANCEL . ' ">' . BUTTON_TEXT_CANCEL . '</a><br /> '); break; case 'delete': $heading_title = '<b>' . TEXT_HEADING_DELETE_MANUFACTURER . '</b>'; $form_tag = xos_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'); $contents[] = array('text' => TEXT_DELETE_INTRO); $contents[] = array('text' => '<br /><b>' . $mInfo->manufacturers_name . '</b>'); if ($mInfo->manufacturers_image) { $contents[] = array('text' => '<div class="checkbox"><label>' . xos_draw_checkbox_field('delete_image') . ' ' . TEXT_DELETE_IMAGE . '</label></div>');
$contents[] = array('text' => '<br /><a href="" onclick="manufacturers.submit(); return false" class="button-default" style="margin-right: 5px; float: left" title=" ' . BUTTON_TITLE_SAVE . ' "><span>' . BUTTON_TEXT_SAVE . '</span></a><a href="' . xos_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $_GET['mID']) . '" class="button-default" style="margin-right: 5px; float: left" title=" ' . BUTTON_TITLE_CANCEL . ' "><span>' . BUTTON_TEXT_CANCEL . '</span></a><br /> '); break; case 'edit': $heading_title = '<b>' . TEXT_HEADING_EDIT_MANUFACTURER . '</b>'; $form_tag = xos_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=save', 'post', 'enctype="multipart/form-data"'); $contents[] = array('text' => TEXT_EDIT_INTRO); $manufacturer_inputs_string = ''; $languages = xos_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $manufacturer_inputs_string .= '<br />' . xos_image(DIR_WS_CATALOG_IMAGES . 'catalog/templates/' . DEFAULT_TPL . '/' . $languages[$i]['directory'] . '/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . xos_draw_input_field('manufacturers_name[' . $languages[$i]['id'] . ']', xos_get_manufacturers_name($mInfo->manufacturers_id, $languages[$i]['id'])); } $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_NAME . $manufacturer_inputs_string); $manufacturer_inputs_string = ''; $languages = xos_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $manufacturer_inputs_string .= '<br />' . xos_image(DIR_WS_CATALOG_IMAGES . 'catalog/templates/' . DEFAULT_TPL . '/' . $languages[$i]['directory'] . '/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . xos_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', xos_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id'])); } $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string); if ($mInfo->manufacturers_image) { $contents[] = array('text' => '<br />' . xos_image(DIR_WS_CATALOG_IMAGES . 'manufacturers/' . $mInfo->manufacturers_image, $mInfo->manufacturers_name) . '<br /><b>' . $mInfo->manufacturers_image . '</b><br />' . TEXT_DELETE . xos_draw_hidden_field('current_manufacturer_image', $mInfo->manufacturers_image) . xos_draw_selection_field('delete_manufacturer_image', 'checkbox', 'true')); } $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_IMAGE . '<br />' . xos_draw_file_field('manufacturers_image') . '<br />'); $contents[] = array('text' => '<br /><a href="" onclick="manufacturers.submit(); return false" class="button-default" style="margin-right: 5px; float: left" title=" ' . BUTTON_TITLE_SAVE . ' "><span>' . BUTTON_TEXT_SAVE . '</span></a><a href="' . xos_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id) . '" class="button-default" style="margin-right: 5px; float: left" title=" ' . BUTTON_TITLE_CANCEL . ' "><span>' . BUTTON_TEXT_CANCEL . '</span></a><br /> '); break; case 'delete': $heading_title = '<b>' . TEXT_HEADING_DELETE_MANUFACTURER . '</b>'; $form_tag = xos_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'); $contents[] = array('text' => TEXT_DELETE_INTRO); $contents[] = array('text' => '<br /><b>' . $mInfo->manufacturers_name . '</b>'); if ($mInfo->manufacturers_image) { $contents[] = array('text' => '<br />' . xos_draw_checkbox_field('delete_image') . ' ' . TEXT_DELETE_IMAGE);