Exemplo n.º 1
0
        <td><?php 
    echo xtc_draw_separator('pixel_trans.gif', '1', '5');
    ?>
</td>
      </tr>
      <tr><?php 
    echo xtc_draw_form('status', FILENAME_ORDERS, xtc_get_all_get_params(array('action')) . 'action=update_order');
    ?>
        <td class="main"><?php 
    echo xtc_draw_textarea_field('comments', 'soft', '60', '5', $order->info['comments']);
    ?>
</td>
      </tr>
      <tr>
        <td><?php 
    echo xtc_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
      </tr>
      <tr>
        <td><table border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td><table border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td class="main"><b><?php 
    echo ENTRY_STATUS;
    ?>
</b> <?php 
    echo xtc_draw_pull_down_menu('status', $orders_statuses, $order->info['orders_status']);
    ?>
</td>
Exemplo n.º 2
0
  <small><?php 
    echo BOX_HEADING_CUSTOMERS;
    ?>
</small>
            </p>
        </div>
        <div class="col-xs-12">
            <?php 
    echo xtc_draw_form('search', FILENAME_CUSTOMERS, '', 'get');
    ?>
              <div class="col-sm-4 col-xs-12 pageHeading"><?php 
    echo '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_CREATE_ACCOUNT) . '">' . BUTTON_CREATE_ACCOUNT . '</a>';
    ?>
</div>
              <div class="col-sm-4 col-xs-12 pageHeading" align="right"><?php 
    echo xtc_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT);
    ?>
</div>
              <div class="col-sm-4 col-xs-12 smallText" align="right"><?php 
    echo HEADING_TITLE_SEARCH . ' ' . xtc_draw_input_field('search') . xtc_draw_hidden_field(xtc_session_name(), xtc_session_id());
    ?>
</div>
            </form>
        </div>
        <div class="col-xs-12 smallText text-center">
            <?php 
    echo xtc_draw_form('status', FILENAME_CUSTOMERS, '', 'get');
    $select_data = array();
    //BOF - GTB - 2011-02-03 - show selected customer group
    //$select_data = array (array ('id' => '99', 'text' => TEXT_SELECT), array ('id' => '100', 'text' => TEXT_ALL_CUSTOMERS));
    $select_data = array(array('id' => '', 'text' => TEXT_SELECT), array('id' => '100', 'text' => TEXT_ALL_CUSTOMERS));
        ?>
</td>
              </tr>
              <tr>
                <td class="dataTableContent"><?php 
        echo $affiliate_clickthroughs['affiliate_clientip'];
        ?>
</td>
                <td class="dataTableContent" colspan="3"><?php 
        echo $affiliate_clickthroughs['affiliate_clientreferer'];
        ?>
</td>
              </tr>
              <tr>
                <td class="dataTableContent" colspan="4"><?php 
        echo xtc_draw_separator('pixel_black.gif', '100%', '1');
        ?>
</td>
              </tr>
<?php 
    }
} else {
    ?>
              <tr class="productListing-odd">
                <td colspan="7" class="smallText"><?php 
    echo TEXT_NO_CLICKS;
    ?>
</td>
              </tr>
<?php 
}
    $total_block .= '</table>';
}
// EOF GM_MOD saferpay
$smarty->assign('TOTAL_BLOCK', $total_block);
$smarty->assign('total_block_data', $t_total_block_array);
//GM_PATCH 0000318
$payment_modules->update_status();
if (is_array($payment_modules->modules)) {
    if ($confirmation = $payment_modules->confirmation()) {
        $payment_info = $confirmation['title'];
        for ($i = 0, $n = sizeof($confirmation['fields']); $i < $n; $i++) {
            $payment_info .= '<table>
								<tr>
						                <td>' . xtc_draw_separator('pixel_trans.gif', '10', '1') . '</td>
						                <td class="main">' . $confirmation['fields'][$i]['title'] . '</td>
						                <td>' . xtc_draw_separator('pixel_trans.gif', '10', '1') . '</td>
						                <td class="main">' . stripslashes($confirmation['fields'][$i]['field']) . '</td>
						              </tr></table>';
        }
        $smarty->assign('PAYMENT_INFORMATION', $payment_info);
    }
}
if (xtc_not_null($order->info['comments'])) {
    $smarty->assign('ORDER_COMMENTS', nl2br(htmlspecialchars($order->info['comments'])) . xtc_draw_hidden_field('comments', $order->info['comments']));
}
// Call Refresh Hook
$payment_modules->refresh();
if (isset(${$_SESSION}['payment']->form_action_url) && !${$_SESSION}['payment']->tmpOrders && $_SESSION['payment'] != 'no_payment') {
    $form_action_url = ${$_SESSION}['payment']->form_action_url;
} else {
    $form_action_url = xtc_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
 function credit_selection()
 {
     $selection_string = '';
     $close_string = '';
     $credit_class_string = '';
     if (MODULE_ORDER_TOTAL_INSTALLED) {
         // BOF - vr - 2010-03-03 fix gv display on checkout
         /*$header_string = '<tr>'."\n";
         		$header_string .= '   <td><table border="0" width="100%" cellspacing="0" cellpadding="2">'."\n";
         		$output1_string .= '      <tr>'."\n";
         		$header_string .= '        <td class="main"><strong>'.TABLE_HEADING_CREDIT.'</strong></td>'."\n";
         		$header_string .= '      </tr>'."\n";
         		$header_string .= '    </table></td>'."\n";
         		$header_string .= '  </tr>'."\n";
         		$header_string .= '<tr>'."\n";
         		$header_string .= '   <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">'."\n";
         		$header_string .= '     <tr class="infoBoxContents"><td><table border="0" width="100%" cellspacing="0" cellpadding="2">'."\n";
         		$header_string .= '       <tr><td width="10">'.xtc_draw_separator('pixel_trans.gif', '10', '1').'</td>'."\n";
         		$header_string .= '           <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">'."\n";
         		$close_string = '                           </table></td>';
         		$close_string .= '<td width="10">'.xtc_draw_separator('pixel_trans.gif', '10', '1').'</td>';
         		$close_string .= '</tr></table></td></tr></table></td>';
         		$close_string .= '<tr><td width="100%">'.xtc_draw_separator('pixel_trans.gif', '100%', '10').'</td></tr>';*/
         $header_string = '<tr><td>';
         $header_string .= '<table class="paymentblock" border="0" width="100%" cellspacing="0" cellpadding="6">';
         $header_string .= '<td width="90%" class="header">' . TABLE_HEADING_CREDIT . '</td>';
         $header_string .= '<td width="10%" class="header"></td>';
         $header_string .= '</table>';
         $header_string .= '</td></tr>';
         $close_string .= '<tr><td width="100%">' . xtc_draw_separator('pixel_trans.gif', '100%', '10') . '</td></tr>';
         // EOF - vr - 2010-03-03 fix gv display on checkout
         reset($this->modules);
         $output_string = '';
         while (list(, $value) = each($this->modules)) {
             $class = substr($value, 0, strrpos($value, '.'));
             if ($GLOBALS[$class]->enabled && isset($GLOBALS[$class]->credit_class) && $GLOBALS[$class]->credit_class) {
                 $use_credit_string = $GLOBALS[$class]->use_credit_amount();
                 if ($selection_string == '') {
                     $selection_string = $GLOBALS[$class]->credit_selection();
                 }
                 if ($use_credit_string != '' || $selection_string != '') {
                     $output_string .= '<tr colspan="4"><td colspan="4" width="100%">' . xtc_draw_separator('pixel_trans.gif', '100%', '10') . '</td></tr>';
                     $output_string .= '<tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" >';
                     $output_string .= '<td width="10">' . xtc_draw_separator('pixel_trans.gif', '10', '1') . '</td>';
                     // BOF - vr - 2010-03-03 fix gv display on checkout
                     // $output_string .='<td class="main"><strong>'.$GLOBALS[$class]->header.'</strong></td>';
                     // EOF - vr - 2010-03-03 fix gv display on checkout
                     $output_string .= $use_credit_string;
                     $output_string .= '<td width="10">' . xtc_draw_separator('pixel_trans.gif', '10', '1') . '</td>';
                     $output_string .= '</tr>' . "\n";
                     $output_string .= $selection_string;
                 }
             }
         }
         if ($output_string != '') {
             $output_string = $header_string . $output_string;
             $output_string .= $close_string;
         }
     }
     return $output_string;
 }
    </div>
    <div class='col-xs-12'> <br> </div>
    <?php 
$form_action = isset($_GET['cID']) ? 'update_category' : 'insert_category';
echo xtc_draw_form('new_category', FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $_GET['cID'] . '&action=' . $form_action, 'post', 'enctype="multipart/form-data"');
?>
      <!-- BOF - Tomcraft - 2009-11-02 - Block1 //-->
      <div class='col-xs-12'>
          <hr>
          <div class='col-xs-12'>
            <div class="col-xs-2 main"><?php 
echo TEXT_EDIT_CATEGORIES_IMAGE;
?>
</div>
            <div class="col-xs-10 main"><?php 
echo xtc_draw_file_field('categories_image') . '<br />' . xtc_draw_separator('pixel_trans.gif', '24', '15') . xtc_draw_hidden_field('categories_previous_image', $cInfo->categories_image);
?>
</div>
          
          
            <?php 
if ($cInfo->categories_image) {
    ?>
              <br />
              <img src="<?php 
    echo DIR_WS_CATALOG . 'images/categories/' . $cInfo->categories_image;
    ?>
" style="max-width:200px; max-height:200px">
              <br /><?php 
    echo '&nbsp;' . $cInfo->categories_image;
    echo xtc_draw_selection_field('del_cat_pic', 'checkbox', 'yes') . TEXT_DELETE;
Exemplo n.º 7
0
                $color = '#FF6969';
                break;
            case '2':
                $color = '#69CDFF';
                break;
            case '3':
                $color = '#6BFF7F';
                break;
            case '4':
                $color = '#BFA8FF';
                break;
            case '5':
                $color = '#FFE6A8';
        }
        echo '<tr>
    <td width="10" bgcolor="' . $color . '" >' . xtc_draw_separator('pixel_trans.gif', 15, 15) . '</td>
        <td class="dataTableContentRow">
        <input type="checkbox" name="access[]" value="' . $field . '"' . $checked . '>
        ' . $field . '</td>
        </tr>';
    }
}
?>
    </tbody>
    </table>
    </div>
<input type="submit" class="btn btn-default" onclick="return confirm('<?php 
echo SAVE_ENTRY;
?>
')" value="<?php 
echo BUTTON_SAVE;
Exemplo n.º 8
0
 function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false)
 {
     $this->table_cellpadding = '0';
     if ($left_corner == true) {
         $left_corner = xtc_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');
     } else {
         $left_corner = xtc_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');
     }
     if ($right_arrow == true) {
         $right_arrow = '<a href="' . $right_arrow . '">' . xtc_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
     } else {
         $right_arrow = '';
     }
     if ($right_corner == true) {
         $right_corner = $right_arrow . xtc_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');
     } else {
         $right_corner = $right_arrow . xtc_draw_separator('pixel_trans.gif', '11', '14');
     }
     $info_box_contents = array();
     $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="infoBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="infoBoxHeading" nowrap', 'text' => $right_corner));
     $this->tableBox($info_box_contents, true);
 }
                </tr>
                <tr>
                  <td colspan="4"><?php 
echo xtc_draw_separator();
?>
</td>
                </tr>
                <tr>
                  <td align="center" class="dataTableContent" colspan="4"><b><?php 
echo TEXT_SUMMARY;
?>
</b></td>
                </tr>
                <tr>
                  <td colspan="4"><?php 
echo xtc_draw_separator();
?>
</td>
                </tr>
                <tr>
                  <td align="right" class="dataTableContent" colspan="4"><?php 
echo '<a href="' . xtc_href_link(FILENAME_AFFILIATE_CLICKS, 'acID=' . $_GET['acID']) . '">' . xtc_image_button('button_affiliate_clickthroughs.gif', IMAGE_CLICKTHROUGHS) . '</a> <a href="' . xtc_href_link(FILENAME_AFFILIATE_SALES, 'acID=' . $_GET['acID']) . '">' . xtc_image_button('button_affiliate_sales.gif', IMAGE_SALES) . '</a>';
?>
</td>
                </tr>
              </center>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
Exemplo n.º 10
0
        $session_data = _sess_read($info);
        //EOF - GTB - 2011-05-04 - BUGFIX base64decoded Session caused empty cart
    } else {
        if (file_exists(xtc_session_save_path() . '/sess_' . $info) && filesize(xtc_session_save_path() . '/sess_' . $info) > 0) {
            $session_data = file(xtc_session_save_path() . '/sess_' . $info);
            $session_data = trim(implode('', $session_data));
        }
    }
    $user_session = unserialize_session_data($session_data);
    if (isset($user_session) && $user_session != '') {
        $products = xtc_get_products($user_session);
        for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
            $contents[] = array('text' => $products[$i]['quantity'] . ' x ' . $products[$i]['name']);
        }
        if (sizeof($products) > 0) {
            $contents[] = array('text' => xtc_draw_separator('pixel_black.gif', '100%', '1'));
            $contents[] = array('align' => 'right', 'text' => TEXT_SHOPPING_CART_SUBTOTAL . ' ' . $user_session['cart']->total . ' ' . $user_session['currency']);
        } else {
            $contents[] = array('text' => TEXT_EMPTY_CART);
        }
        if ($user_session == 'ENCRYPTED') {
            $contents[] = array('text' => TEXT_SESSION_IS_ENCRYPTED);
        }
    }
}
if (xtc_not_null($heading) && xtc_not_null($contents)) {
    echo '            <div class="col-md-3 col-sm-12 col-xs-12 pull-right">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </div>' . "\n";
    ?>
    }
    echo '<td class="main">' . TEXT_PRODUCTS_IMAGE . '<br />' . xtc_draw_file_field('products_image') . '<br />' . xtc_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . $pInfo->products_image . xtc_draw_hidden_field('products_previous_image_0', $pInfo->products_image);
    if ($pInfo->products_image != '') {
        echo '</tr><tr><td align="center" class="main" valign="middle">' . xtc_draw_selection_field('del_pic', 'checkbox', $pInfo->products_image) . ' ' . TEXT_DELETE . '</td></tr></table>';
    } else {
        echo '</td></tr>';
    }
    echo '<tr><td colspan="4" class="main">' . TEXT_PRODUCTS_IMAGE_TITLE . xtc_draw_input_field('products_image_title', $pInfo->products_image_title, 'style="width: 100% !important;"') . '</td></tr>';
    echo '<tr><td colspan="4" class="main">' . TEXT_PRODUCTS_IMAGE_ALT . xtc_draw_input_field('products_image_alt', $pInfo->products_image_alt, 'style="width: 100% !important;"') . '</td></tr>';
    // display MO PICS
    if (MO_PICS > 0) {
        $mo_images = xtc_get_products_mo_images($pInfo->products_id);
        for ($i = 0; $i < MO_PICS; $i++) {
            echo '<tr><td colspan="4">' . xtc_draw_separator('pixel_black.gif', '100%', '1') . '</td></tr>';
            echo '<tr><td colspan="4">' . xtc_draw_separator('pixel_trans.gif', '1', '10') . '</td></tr>';
            if ($mo_images[$i]["image_name"]) {
                echo '<tr><td colspan="4"><table><tr><td align="center" class="main" width="' . (PRODUCT_IMAGE_THUMBNAIL_WIDTH + 15) . '">' . xtc_image(DIR_WS_CATALOG_THUMBNAIL_IMAGES . $mo_images[$i]["image_name"], 'Image ' . ($i + 1)) . '</td>';
            } else {
                echo '<tr>';
            }
            echo '<td class="main">' . TEXT_PRODUCTS_IMAGE . ' ' . ($i + 1) . '<br />' . xtc_draw_file_field('mo_pics_' . $i) . '<br />' . xtc_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . $mo_images[$i]["image_name"] . xtc_draw_hidden_field('products_previous_image_' . ($i + 1), $mo_images[$i]["image_name"]);
            if (isset($mo_images[$i]["image_name"])) {
                echo '</tr><tr><td align="center" class="main" valign="middle">' . xtc_draw_selection_field('del_mo_pic[]', 'checkbox', $mo_images[$i]["image_name"]) . ' ' . TEXT_DELETE . '</td></tr></table>';
            } else {
                echo '</td></tr>';
            }
            echo '<tr><td colspan="4" class="main">' . TEXT_PRODUCTS_IMAGE_TITLE . xtc_draw_input_field('image_title[' . $i . ']', $mo_images[$i]["image_title"], 'style="width: 100% !important;"') . '</td></tr>';
            echo '<tr><td colspan="4" class="main">' . TEXT_PRODUCTS_IMAGE_ALT . xtc_draw_input_field('image_alt[' . $i . ']', $mo_images[$i]["image_alt"], 'style="width: 100% !important;"') . '</td></tr>';
        }
    }
}