예제 #1
0
function parsechoice()
{
    global $cfg, $mysql, $session;
    $tosend = "";
    $res = $mysql->select("SELECT * from `" . $cfg["usercp"]["table"]["cat"] . "` ORDER BY `" . $cfg["usercp"]["column"]["cat"]["order"] . "` ASC");
    if ($res === false) {
        return false;
    }
    for ($i = 0; $i < count($res); $i++) {
        $cat = getcat($res[$i][$cfg["usercp"]["column"]["cat"]["name"]]);
        $r = $mysql->select("SELECT * from `" . $cfg["usercp"]["table"]["actions"] . "` WHERE " . $cfg["usercp"]["column"]["actions"]["catid"] . "='" . $res[$i][$cfg["usercp"]["column"]["cat"]["id"]] . "'");
        if ($r === false) {
            return false;
        }
        $acts = "";
        for ($j = 0; $j < count($r); $j++) {
            $acts .= getaction($r[$j][$cfg["usercp"]["column"]["actions"]["label"]], $r[$j][$cfg["usercp"]["column"]["actions"]["action"]], $session->getname . "=" . $session->getID());
        }
        $tosend .= getchoice($cat, $acts);
    }
    return $tosend;
}
예제 #2
0
   <td width="46" align="center" valign="middle" class="brdr_2" >SKU Id</td>
   <td width="115" align="left" valign="middle" class="brdr_2">Product Name</td>
   <td width="66" align="center" valign="middle" class="brdr_2">Unit Price</td>
   <td width="44" align="center" valign="middle" class="brdr_2">Qty</td>
   <td width="64" align="center" valign="middle" class="brdr_2">Line Price</td>
   <td width="243" align="left" valign="middle" class="brdr_2">Shipping Address</td>
   <td width="97" align="center" valign="middle" class="brdr_2">Option</td>
 </tr>
     <?php
           $i = 1;
           if (count($checkout_product) > 0) {
               foreach ($checkout_product as $chk) {
                   $rowColor = ($i % 2 != 0) ? '#ffeee1' : '#fff6f0';
                   $id       = $chk['id'];
                   $super_id = getsuper($chk['product_id']);
                   $cat_id = getcat($chk['product_id']);
                   $sub_id = getsub($chk['product_id']);
                   $super_name = getsuperN($super_id);
                   $cat_name = getcatN($cat_id);
                   $sub_name = getsubN($sub_id);
                   $product_id = $chk['product_id'];
                   $_SESSION['product_id'] = $chk['product_id'];
                   $sku_id = getSku($chk['product_id']);
                   $product_name = getProName($chk['product_id']);
                   $quantity = $chk['quantity'];
                   $unit_price = $chk['unit_price'];
                   $price = getPriceCkt($user_id);
                   $tax_status = getTaxStatusChk($user_id);
                   if($tax_status == '1')
                   {
                   $tax_line = '8.875';    
예제 #3
0
                                                                                            <td align="center" width="5%" valign="middle" bgcolor="#f68210"  class="brdr">Category</td>
                                                                                            <td align="center" width="20%" valign="middle" bgcolor="#f68210"  class="brdr">Sub Category</td>
                                                                                            <td align="center" width="20%" valign="middle" bgcolor="#f68210"  class="brdr">Product Name</td>
                                                                                            <td align="center" width="15%" valign="middle" bgcolor="#f68210"  class="brdr">List Price</td>
                                                                                            <td align="center" width="5%" valign="middle" bgcolor="#f68210"  class="brdr">Discount(%)</td>
                                                                                            <td align="center" width="35%" valign="middle" bgcolor="#f68210"  class="brdr">Selling Price</td>                                                                            
                                                                                            <td align="center" width="" valign="middle" bgcolor="#f68210"  class="brdr">Action</td>
                                                                                        </tr>

                                                                                        <?php 
            $special_price = getSpecialProduct($cumpony_id);
            if (count($special_price) > 0) {
                $k = 1;
                foreach ($special_price as $Special_Product) {
                    $super_id = getsuper($Special_Product['sp_product_id']);
                    $cat_id = getcat($Special_Product['sp_product_id']);
                    $sub_id = getsub($Special_Product['sp_product_id']);
                    $super_name = getsuperN($super_id);
                    $cat_name = getcatN($cat_id);
                    $sub_name = getsubN($sub_id);
                    $special_id = $Special_Product['sp_id'];
                    $product_name = getorderProd($Special_Product['sp_product_id']);
                    $list_price = $Special_Product['sp_list_price'];
                    $discount_price = $Special_Product['sp_discount'];
                    $selling_price = $Special_Product['sp_special_price'];
                    ?>
 

                                                                                                <tr style="background-color: #F9F2DE;" id="test_<?php 
                    echo $cumpony_id;
                    ?>
예제 #4
0
?>
" />     
            <div style="float: left;width: 100%;text-align: right;padding-bottom: 10px;"><input type="submit" name="Delete" value="REMOVE" style="background: #00979D;color: #FFF;padding: 5px 10px;border-radius: 7px;font-weight: bold;cursor: pointer;" /></div>
            <table align="left" width="100%">
                <tr bgcolor="#ff7e00">
                    <td>Product Name</td>
                    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                </tr>
                <?php 
$i = 1;
foreach ($editfav as $fav) {
    $rowColor = $i % 2 != 0 ? '#ffeee1' : '#fff6f0';
    $id = $fav['id'];
    $product_name = getProName($fav['product_id']);
    $super_id = getsuper($fav['product_id']);
    $cat_id = getcat($fav['product_id']);
    $sub_id = getsub($fav['product_id']);
    $super_name = getsuperN($super_id) != '' ? getsuperN($super_id) : '';
    $cat_name_pre = getcatN($cat_id) != '' ? getcatN($cat_id) : '';
    $cat_name = $cat_name_pre != '' ? '>>' . $cat_name_pre : $cat_name_pre;
    $sub_name_pre = getsubN($sub_id) != '' ? getsubN($sub_id) : '';
    $sub_name = $sub_name_pre != '' ? '>>' . $sub_name_pre : $sub_name_pre;
    ?>
                <tr bgcolor="<?php 
    echo $rowColor;
    ?>
">
                    <td align="left" valign="middle" class="brdr_1" style="font-size: 15px;">
                        <?php 
    echo $product_name . '<br>';
    ?>
예제 #5
0
                                        <td width="400" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Description</td>
                                        <td width="80" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Quantity</td>
                                        <td width="100" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Unit Price</td>
                                        <td width="110" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Total</td>
                                    </tr>
                                    <?php 
$total = 0;
$i = 1;
foreach ($view_orders as $ord) {
    $rowColor = $i % 2 != 0 ? '#dfdfdf' : '#eeeeee';
    $rowColor1 = $i % 2 != 0 ? '#eeeeee' : '#f6f2f2';
    $prod_id = $ord['product_id'];
    $shipping = SelectAllAddress($ord['shipping_add_id']);
    $id = $ord['id'];
    $super_id = getsuper($prod_id);
    $cat_id = getcat($prod_id);
    $sub_id = getsub($prod_id);
    $super_name = getsuperN($super_id) != '' ? getsuperN($super_id) : '';
    $cat_name_pre = getcatN($cat_id) != '' ? getcatN($cat_id) : '';
    $cat_name = $cat_name_pre != '' ? '>>' . $cat_name_pre : $cat_name_pre;
    $sub_name_pre = getsubN($sub_id) != '' ? getsubN($sub_id) : '';
    $sub_name = $sub_name != '' ? '>>' . $sub_name_pre : $sub_name_pre;
    ?>
                                    <tr>
                                        <td width="40" align="left" valign="middle" bgcolor="<?php 
    echo $rowColor1;
    ?>
" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-left:20px;"><?php 
    echo $i;
    ?>
</td>
예제 #6
0
파일: editad.php 프로젝트: karunakarg/ykweb
      <td colspan="2">Posted Under</td>
      <td width="402"><font size="-1" color="#666666"><?php 
echo getsec($section);
?>
 &gt;&gt; 
      <a href="<?php 
echo kbase();
?>
/index.php?option=com_content&view=article&id=32&q=&country=<?php 
echo $section;
?>
&state=<?php 
echo $category;
?>
" target="_blank" style="text-decoration:none"><?php 
echo getcat($category);
?>
      <input name="unique_id" type="hidden" id="hiddenField" value="<?php 
echo $unique_id;
?>
" />
      <input name="aid" type="hidden" id="hiddenField" value="<?php 
echo $aid;
?>
" />      
      <input name="date" type="hidden" id="hiddenField3" value="<?php 
echo $date;
?>
" />
      <input name="category" type="hidden" id="hiddenField4" value="<?php 
echo $category;
예제 #7
0
             <?php
             $i++;
         }
     }
 } elseif (count($search) > 0) {
     $i = 1;
     for ($x = 2; $x <= (count($search) - 1); $x++) {
         $series[] = $x;
     }
     foreach ($search as $src) {
         $rowColor = ($i % 2 != 0) ? '#fcd9a9' : '#f9f2de';
         $rowColor1 = ($i % 2 != 0) ? '#fde8cb' : '#fbf7eb';
         $checked_quantity = '';
         $checked_total = '0.00';
         $super_id = getsuper($src['id']);
         $cat_id = getcat($src['id']);
         $sub_id = getsub($src['id']);
         $super_name = (getsuperN($super_id) != '') ? getsuperN($super_id) . ' >> ' : '';
         $cat_name = (getcatN($cat_id) != '') ? getcatN($cat_id) : '';
         $sub_name = (getsubN($sub_id) != '') ? ' >>' . getsubN($sub_id) : '';
         ?> 
         <tr>
             <input type="hidden" name="count_pro" id="count_pro" value="<?php echo count($search); ?>" />
             <td bgcolor="<?php echo $rowColor; ?>" style="width:50px"><div id="j"></div></td>
             <td bgcolor="<?php echo $rowColor; ?>" style="text-align: left;" width="300" height="25">
                 <span><?php echo stripslashes($src['product_name']); ?></span></br>
                 <span class="trail" style="font-size: 11px;color: #2a9be3;"><?php echo $super_name . $cat_name . $sub_name; ?></span>    
             </td>
             <td bgcolor="<?php echo $rowColor1; ?>" style="text-align:right;padding-right: 35px"><?php echo $src['price']; ?><input type="hidden"  id="product_id_<?php echo $src['id']; ?>" name="price[]" value="<?php echo $src['price']; ?>" /></td>
             <td bgcolor="<?php echo $rowColor; ?>"><input class="proquan quantity_check" onchange="return myFunction('<?php echo $src['id']; ?>');" onkeyup="return quantity_val('<?php echo $src['id']; ?>');" price="<?php echo $src['price']; ?>" productid="<?php echo $src['sku_id']; ?>" name="quantity[]" id="quantity_<?php echo $src['id']; ?>"  value="" style="text-align: right;padding:1px;width:64px;border:1px solid #CCC;" type="text"></td>
             <td bgcolor="<?php echo $rowColor1; ?>" style="text-align:right;padding-right: 10px"><div class="sub_total_<?php echo $src['id']; ?>"><?php echo $checked_total; ?></div><input class="sub_total_txt_<?php echo $src['id']; ?>" id="sub_total_txt_id_<?php echo $src['id']; ?>" type="hidden" value="" /><input class="dummy1" id="dummy1" type="hidden" value="" /></td>
예제 #8
0
	      <tr>
	        <td colspan="2"><font size="-1" color="#333333">Posted On :</font> <font size="-1" color="#666666"><?php 
        echo $row['date'];
        ?>
</font> &nbsp;&nbsp;<font size="-1" color="#333333">under</font>&nbsp;: <font size="-1" color="#666666"><?php 
        echo getsec($row['section']);
        ?>
 &gt;&gt; 
     <a href="results.php?q=&section=<?php 
        echo $row['section'];
        ?>
&category=<?php 
        echo $row['category'];
        ?>
" target="_parent" style="text-decoration:none"><?php 
        echo getcat($row['category']);
        ?>
</a></font></td>
      </tr>
	      <tr>
	        <td width="144"><hr  /></td>
	        <td colspan="2"><hr  /></td>
      </tr>
      
	  <?php 
    }
}
?>
    </table>
    <?php 
if (!mysql_num_rows($result)) {
예제 #9
0
if ($_GET['pn_go'] == 'details') {
    /* Ausgabe des betreffenden Newseintrags */
    for ($i = 0; $i < $zeilen; $i++) {
        $eintrag = explode('§', $zeile[$i]);
        if ($eintrag[0] == $_GET['id']) {
            $datum = formatdate($eintrag[6], $dateformat);
            $eintrag[1] = getname($eintrag[1], 'news/inc/pn_userdata.php');
            $eintrag[2] = formattext($eintrag[2], $smilies, $smiliespath, $myBoardCodeTags, $texthtml);
            $eintrag[3] = formattext($eintrag[3], $smilies, $smiliespath, $myBoardCodeTags, $texthtml);
            if ($eintrag[4] != '') {
                $eintrag[4] = formattext($eintrag[4], $smilies, $smiliespath, $myBoardCodeTags, $texthtml);
                $eintrag[3] = $eintrag[3] . '<br /><br /><b>More:</b><br />' . $eintrag[4];
            }
            /* Kategorie-System */
            if ($showcat == 'yes') {
                $eintrag[5] = getcat($eintrag[5], 'news/inc/pn_categories.dat', 'catpics', $catpics);
            } else {
                $eintrag[5] = '';
            }
            /* ---------------- */
            $commentscount = commentscount($eintrag[0]);
            $comments = '<a href="' . $_SERVER['PHP_SELF'] . '?pn_go=details&id=' . $eintrag[0] . $params . '">Comments (' . $commentscount . ')</a>';
            $tpl->set_var(array('cat' => $eintrag[5], 'newsnr' => $newsnr, 'autor' => $eintrag[1], 'title' => $eintrag[2], 'news' => $eintrag[3], 'datum' => $datum, 'readmore' => $readmore, 'comments' => $comments));
            $tpl->parse("LOOPSECTION", "LOOP", true);
        }
    }
    /* ------------------------------------- */
    /* Kommentarübersicht anzeigen */
    $tpl->parse("HEADER", "COMMENTSHEADER", true);
    $tpl->set_var(array("commentscount" => $commentscount));
    /* --------------------------- */
예제 #10
0
        <li class="divider"></li>
        <li><a href="special" class="nav3">Specials</a></li>
        <li class="divider"></li>
        <li><a href="about" class="nav4">About Us</a></li>
        <li class="divider"></li>
        <li><a href="feedback" class="nav5">Feedback</a></li>
        <li class="divider"></li>
        <li><a href="contact" class="nav6">Contact Us</a></li>
      </ul>
      <div class="right_menu_corner"></div>
    </div>
    <div class="left_content">
      <div class="title_box">Categories</div>
      <ul class="left_menu">
        <?php 
getcat();
?>
      </ul>
      <div class="title_box">Special Products</div>
      <div class="border_box">
        <div class="product_title"></div>
        <div class="product_img"><a href="special"><img src="randim?type=1&amp;folder=specials"></a></div>
        <div class="prod_price"><span class="price">FREE</span></div>
      </div>
      <div class="title_box">Feedback</div>
      <div class="border_box">
        <input type="text" name="newsletter" class="newsletter_input" value="Message"/>
        <a href="feedback" class="join">add</a> </div>
      <div class="banner_adds"> <a href="feedback"><img src="images/bann4.gif" alt="" border="0" /></a> </div>
    </div>
    <div class="center_content">
예제 #11
0
파일: viewad.php 프로젝트: karunakarg/ykweb
?>
</font></b></td>
  </tr>
</table>
<table width="700" border="0">
  <tr>
    <td width="200"><font size="-1" color="#666666">Click on Pictures to Enlarge them</font></td>
    <td width="500"><font size="-1" color="#333333">Posted On :</font> <font size="-1" color="#666666"><?php 
echo $ad['date'];
?>
</font> &nbsp;&nbsp;&nbsp;&nbsp;<font size="-1" color="#333333">under</font>&nbsp;: <font size="-1" color="#666666"><?php 
echo getsec($ad['section']);
?>
 &gt;&gt; 
    <?php 
echo getcat($ad['category']);
?>
 &gt;&gt; 
    <?php 
echo getbrand($ad['brand']);
?>
</font></td>
  </tr>
</table>
<table width="711" border="0">
  <tr>
    <td width="304" rowspan="3"><a href="<?php 
echo $ad['mimg'];
?>
" rel="lightbox"><img src="<?php 
echo $ad['mimg'];
예제 #12
0
</td>
	        <td width="472"><strong>Email : </strong><?php 
            echo $row['email'];
            ?>
</td>
      </tr>
	      <tr>
	        <td colspan="3"><font size="-1" color="#333333">Posted On :</font> <font size="-1" color="#666666"><?php 
            echo $row['timestamp'];
            ?>
</font> &nbsp;&nbsp;<font size="-1" color="#333333">under</font>&nbsp;: <font size="-1" color="#666666"><?php 
            echo getsec($row['sec']);
            ?>
 &gt;&gt; 
    <?php 
            echo getcat($row['cat']);
            ?>
</font></td>
      </tr>
	      <tr>
	        <td colspan="3"><hr  /></td>
      </tr>
    <?php 
        }
        ?>
    </table>
    <?php 
        //******************************************************PAGINATION ************************88
        echo pagination($st, $limit, $page, $url = '?op=3&gid=' . $gid . '&&query=' . $query . '&&');
        /////////////////////////////////////////////////////////////////////////////////////////////
    } else {
예제 #13
0
    }
    /* -------------------------- */
    echo '</table><br /><br /><a href="' . $_SERVER['PHP_SELF'] . '?go=addcat">Kategorie hinzuf&uuml;gen</a>';
}
#########################################
#########################################
#         Kategorie Editieren           #
#########################################
if ($_GET['go'] == 'edit') {
    $zeile = file($catfile);
    $zeilen = sizeof($zeile);
    for ($i = 0; $i < $zeilen; $i++) {
        $eintrag = explode('§', $zeile[$i]);
        if ($eintrag[0] == $_GET['catid']) {
            $eintrag[2] = my_br2nl($eintrag[2]);
            $eintrag[2] = getcat($eintrag[0], '../inc/pn_categories.dat', '../catpics', $catpics);
            echo '<form action="' . $_SERVER['PHP_SELF'] . '?go=save" method="post" enctype="multipart/form-data">
					<input type="hidden" name="catid" value="' . $_GET['catid'] . '">
  					<table cellpadding="1" cellspacing="1" border="0" class="rahmen">
						<tr class="tr1"> 
							<td colspan="2"><b>Name:</b><br />
								<input type="text" name="name" size=25" value="' . $eintrag[1] . '"><br />
							</td>
				        </tr>
						<tr class="tr1" valign="top">';
            if ($catpics == 'no') {
                echo '<td>
							<b>Aktuelles Bild:</b><br /><br />						    	
							<small>Die Bildanzeige f&uuml;r Kategorien ist deaktiviert.</small>
						</td>';
            } else {