<fieldset style="width:720px;">
		                      <legend class="listingmaintext"><b><?php 
        echo TEXT_KB_INFO;
        ?>
</b></legend>
							  <table border=0 width="100%">
							      <tr><td colspan="5">&nbsp;</td></tr>
							     <tr>
			                     <td width="12%" align="left">&nbsp;</td>
			                     <td width="25%" align="left" class="listingmaintext"><?php 
        echo TEXT_CATEGORY;
        ?>
</td>
			                     <td width="22%" align="left" class="listingmaintext">
								 <?php 
        echo makeDropDownList("cmbCategory", makeCategoryList(0, 0, $var_deptid), $var_category, true, "textbox", "", "");
        ?>
			                      </td>
						            <td width="41%" align="left" class="listingmaintext"> <?php 
        //modified on October 28, 2006 by Roshith
        ?>
											   <input name="chkaddtokb" type="checkbox"  value="atokb" class="checkbox" onClick="checkaddtokb();" <?php 
        if ($var_addtokb == "atokb") {
            echo "checked";
        }
        echo $chk_kb_disabled;
        ?>
><?php 
        echo TEXT_KB_ADD;
        ?>
									</td>
        <?php 
}
?>
        <!-- %%%%%%%%%%%%%%%%%%%%% Errors or Messages %%%%%%%%%%%%%%%%%% -->

        <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" class="comm_tbl">

            <tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td align="right" width="40%">
                    Choose your theme
                </td>
                <td width="60%" align="left"><?php 
echo makeDropDownList("ddlCSS", getCSSList(), $selectedid, "comm_input input_width1", $properties, "onchange='validateStyleForm()'", true);
?>
</td>
            </tr>
        </table>




        <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="maintext">
            <tr align="center" class="pagecolor">
                <td width="34%">&nbsp;</td>
                <td width="16%"><!-- <input name="btnSubmit" type="button" class="button" value="<?php 
echo BUTTON_TEXT_SUBMIT;
?>
" onClick="javascript:validateStyleForm();">--></td>
 &nbsp; <?php 
echo number_format($grand_total, 2, ".", "");
?>
</b></td>
											    <td>&nbsp;</td>
											    <td>&nbsp;</td>
											</tr>
											
<?php 
if (isNotNull($check)) {
    /*----------Multicart 2.0 Upgradation-----------------------*/
    if ($rw["order_status"] != "Cancelled" && getOrderStatus($orderid) != 'Delivered') {
        ?>
												<tr align="left" valign="middle" class="whitebg">
												  <td colspan="8" class="btn_gotbl">Change Order Status to:	<?php 
        echo makeDropDownList("ddlStatus", $statlist, $ddlStatus, false, "textarea2", $properties, $behaviors);
        ?>
&nbsp;&nbsp;&nbsp;
                                                    <input name="chkStatus" type="checkbox" id="chkStatus" value="Y">
Inform Order Staus Change To Buyer 
												  <input type="submit" name="btnGo" value="Go" class="button"  > &nbsp;&nbsp;</td>
										  </tr>
												<tr align="left" valign="middle" class="whitebg">
												  <td colspan="8" class="btn_gotbl">&nbsp;</td>
										  </tr>
<?php 
    }
}
?>
											
										</table>
                        <form name="frmFeedback" action="<?php 
echo $_SERVER["PHP_SELF"];
?>
" method="POST">
                            <table cellpadding="0" cellspacing="0" width="100%" class="manage_table">
                                <?php 
if ($artistListCount > 0) {
    ?>
                                <tr><td colspan="3" align="right" class="brdrbtm"><span class="required">*</span>&nbsp;Fields are mandatory</td></tr>
                                <tr><td colspan="3">&nbsp;</td></tr>

                                <tr><td width="39%" align="right" valign=top>To&nbsp;<span class="required">*</span></td>
                                    <td width="3%" >&nbsp;</td>
                                    <td width="58%" align="left" valign=top><?php 
    echo makeDropDownList("ddlArtist[]", $artistlist, $ddlArtist, false, 'textarea2', ' multiple size=10 cols=40 ', $behaviors);
    ?>
</td>
                                </tr>
                                <tr><td align="right" valign=top>Subject&nbsp;<span class="required">*</span></td>
                                    <td >&nbsp;</td>
                                    <td valign=top align="left"><input class="textarea2" type="text" name="txtSubject" value="<?php 
    echo htmlentities(stripslashes($txtSubject));
    ?>
" size="60" maxlength="255"></td>
                                </tr>
                                <tr><td align="right" valign=top>Mail Content&nbsp;<span class="required">*</span></td>
                                    <td >&nbsp;</td>
                                    <td valign=top align="left"><textarea name='txtMailContent' rows='10' class="textarea2" cols='50'><?php 
    echo htmlentities(stripslashes($txtMailContent));
    ?>
                                                <tr><td align="right" >Address Line 2</td>
                                                    <td >:</td>
                                                    <td align="left" ><input class="textarea" type="text" value="<?php 
echo stripslashes($txtAddress2);
?>
" name="txtAddress2" size="40" maxlength="100"></td></tr>
                                                <tr><td align="right" >City&nbsp;<span class="required">*</span></td>
                                                    <td >:</td>
                                                    <td align="left"><input class="textarea" type="text" value="<?php 
echo stripslashes($txtCity);
?>
" name="txtCity" size="30" maxlength="100"></td></tr>
                                                <tr><td align="right" >Country&nbsp;<span class="required">*</span></td>
                                                    <td >:</td>
                                                    <td align="left"><?php 
echo makeDropDownList("ddlCountry", $countrylist, $ddlCountry, false, "textarea", $properties, $behaviors);
?>
</td></tr>
                                                <tr><td align="right" >State&nbsp;<span class="required">*</span></td>
                                                    <td >:</td>
                                                    <td align="left"><select id='billStateSelect' class="textarea" name='txtState'>
                                                        </select> <SCRIPT  type="text/javascript">initCountry(); </SCRIPT> </td></tr>
                                                <tr><td align="right" >ZIP&nbsp;<span class="required">*</span></td>
                                                    <td >:</td>
                                                    <td align="left"><input type="text" class="textarea" value="<?php 
echo htmlentities($txtZIP);
?>
" name="txtZIP" size="30" maxlength="20"></td></tr>

                                                <tr><td align="right" >Company&nbsp;<span class="required">*</span></td>
                                                    <td >:</td>
                                                                         <?php 
 if ($gift_certificate == 0) {
     // check if products are not gifts certificates
     $sql = " SELECT od.*,s.order_status,o.vorder_currency,o.taxrate,gm.ngift_product_id,gm.vgift_coupon_code\n                                                                        FROM " . $tableprefix . "order_details od\n\t\t\t\t\t\t\t\t\tINNER JOIN " . $tableprefix . "order_status s ON s.order_status_id = od.item_status\n\t\t\t\t\t\t\t\t\tLEFT JOIN " . $tableprefix . "giftcoupon_master gm ON gm.ngift_product_id=od.product_id \n\t\t\t\t\t\t\t\t\tLEFT JOIN " . $tableprefix . "orders o ON o.order_id=od.order_id \n\t\t\t\t\t\t\t\t\tWHERE  od.order_id = '" . addslashes($orderid) . "'  AND  (od.artist_id = '" . $artists[$i] . "') \n                                    order by  od.product_name";
 }
 // end if
 //echo $sql . "<br>";
 if ($gift_certificate == 1) {
     //	check if products are not gifts certificates
     $sql = "SELECT od.*,s.order_status,o.vorder_currency,o.taxrate,gm.ngift_product_id,gm.vgift_coupon_code\n                                                                        FROM " . $tableprefix . "order_details od\n\t\t\t\t\t\t\t\t\tINNER JOIN " . $tableprefix . "order_status s ON s.order_status_id = od.item_status\n\t\t\t\t\t\t\t\t\tLEFT JOIN " . $tableprefix . "giftcertificates gm ON gm.ngift_product_id=od.product_id  AND gm.ngift_order_id=od.order_id\n\t\t\t\t\t\t\t\t\tLEFT JOIN " . $tableprefix . "products p ON p.product_id=od.product_id \n\t\t\t\t\t\t\t\t\tLEFT JOIN " . $tableprefix . "orders o ON o.order_id=od.order_id \n\t\t\t\t\t\t\t\t\tWHERE  od.order_id = '" . addslashes($orderid) . "'  AND  (od.artist_id = '" . $artists[$i] . "') \n                                    order by  od.product_name";
 }
 $result1 = mysql_query($sql);
 $k = 1;
 $subtotal = 0;
 $ddlStatus = "ddlStatus_" . $artists[$i];
 $ddl = makeDropDownList($ddlStatus, $statlist, ${$ddlStatus}, false, "textbox", "", "");
 $btnStatus = "btnGo_" . $artists[$i];
 $btn = "<input type='submit' value='Go' name='" . $btnStatus . "' class='button'  onClick='return confirmStatus();'> ";
 while ($rw = mysql_fetch_array($result1)) {
     $link = "<a href='editmyproduct.php?productid=" . $rw["product_id"] . "'>";
     $check = "<input type='checkbox' name='chkitems[]' value='" . $rw["order_detail_id"] . "' class='checkbox'> ";
     $rate = $rw["product_price"];
     $currencySymbol = $adminCurrency['currency_symbol'];
     $qty = $rw["product_quantity"];
     $artistid = $rw["artist_id"];
     $refund_id = $rw["user_refund_id"];
     $giftid = $rw["ngift_product_id"];
     $productid = $rw["product_id"];
     $price = $rate * $qty;
     $discount = 0;
     if ($rw["product_discount"] != "0") {
        $additional_categories_list = $catid;
    }
    $additional_categoriesArray = explode(',', $additional_categories_list);
    getDropdown($additional_categoriesArray, $catid);
    //echo getDropdown($additional_categories_list);
    ?>
                                                                    <span class="help"><a href="#" title="Select additional categories"><img src="../images/question_mark.jpg" border="0" height="15"></a></span>
                                                                </td>
                                                            </tr>
                                                            <tr><td align="right" ><?php 
    echo TEXT_VENDOR;
    ?>
&nbsp;<span class="required">*</span></td>
                                                                <td >:</td>
                                                                <td align='left'><?php 
    echo makeDropDownList("ddlArtist", $artistlist, $ddlArtist, true, 'textarea', $properties, $behaviors);
    ?>
                                                                    <span class="help"><a href="#" title="Which Seller's product"><img src="../images/question_mark.jpg" border="0" height="15"></a></span>
                                                                </td></tr>
                                                            <tr><td align="right" valign="top">Description&nbsp;<span class="required">*</span></td>
                                                                <td valign="top" >:</td>
                                                                <td align='left'>
                                                                    <textarea id="editor1"  rows="15" cols="100" name="txtDescription"><?php 
    echo stripslashes($_POST['txtDescription']);
    ?>
</textarea>
                                                                    <span class="help"><a href="#" title="Description about the product, which will appear in the product details page."><img src="../images/question_mark.jpg" border="0" height="15"></a></span>
                                                                </td></tr>
                                                            <!--<tr>
                                                                <td align="right">Digital Product&nbsp;</td>
                                                                <td>:</td>
                        <div class="content_section_subtitle"><h3><?php 
        echo TEXT_KB_INFO;
        ?>
</h3></div>
                        </br>

                        <table border=0 width="100%">
                            <tr>

                                <td width="6%" align="left" class="fieldnames"><?php 
        echo TEXT_CATEGORY;
        ?>
</td>
                                <td width="3%" align="left" class="listingmaintext">
                                            <?php 
        echo makeDropDownList("cmbCategory", makeCategoryList(0, 0, $var_deptid), $var_category, "comm_input input_width1", "", "");
        ?>
                                </td>
                                <td width="31%" align="left" class="listing">
                                    <input name="chkaddtokb" type="checkbox"  value="atokb" class="checkbox" onClick="checkaddtokb();" <?php 
        if ($var_addtokb == "atokb") {
            echo "checked";
        }
        echo $chk_kb_disabled;
        ?>
><?php 
        echo TEXT_KB_ADD;
        ?>
                                </td>
                            </tr>
                        </table>
?>
                            </td>
                        </tr>
                        <!--Auto return mail------------------>
                        <!----- Theme setting----------------------->

                        <tr><td colspan="3">&nbsp;</td></tr>
                        <tr>
                            <td width="6%" align="left">&nbsp;</td>
                            <td width="39%" align="left" class="fieldnames"><?php 
echo TEXT_SET_THEME;
?>
&nbsp;<font style="color:#FF0000; font-size:9px">*</font></td>
                            <td width="55%" align="left"  class="fieldnames">
                                <?php 
echo makeDropDownList("ddlCSS", getCSSList(), $var_theme, "comm_input input_width1 slct-style", $properties, "", true);
?>
                            </td>
                        </tr>
                        <tr><td colspan="3">&nbsp;</td></tr>
                        <!------Theme setting-------------------------->

                        <tr>
                            <td width="6%" align="left">&nbsp;</td>
                            <td width="39%" align="left" class="fieldnames">
                                <?php 
echo TEXT_HOME_FOOTER_CONTENT;
?>
&nbsp;
                            </td>
                            <td width="55%" align="left">
?>
</div>
		
		<div class="sellerfeedbk">	
			
		<table cellpadding="2" cellspacing="2" width="100%" border=0 class="heading">
			<tr>
				<td colspan="3" align="right"><span class="required">*</span>Mandatory Fields</td>
			</tr>
			<tr><td colspan="3">&nbsp;</td></tr>
			<tr><td align="left" valign="top" width="32%">Your Feedback&nbsp;<span class="required">*</span></td><td >&nbsp;</td><td align="left"><TEXTAREA class="textarea" name="txtFeedback" rows="8" cols="40"><?php 
echo $txtFeedback;
?>
</TEXTAREA></td></tr>
			<tr><td align="left" valign="top" >Your rating (1-10, 10 Best)&nbsp;<span class="required">*</span></td><td >&nbsp;</td><td align="left"><?php 
echo makeDropDownList("ddlRating", $ratinglist, $ddlRating, false, "textbox", $properties, $behaviors);
?>
</td></tr>
			<tr><td colspan="3">&nbsp;</td></tr>
			<tr><td colspan="3" align="center">				&nbsp;&nbsp;
				<input class="button" type="button" value="Back to Product Details" onClick="window.location.href='productdetails.php?productid=<?php 
echo generalMethods::getProductdetailNavigationURL($productid);
?>
';" >
				<input type="submit" class="button" value="Post Feedback" name="btnPostFeedback"></td></tr>
		</table>
		<div class="clear"></div>
		</div>	
	
	
		<div align="left" class="float_clear1"></div>
														        </tr>
															  </table>
															  </div>
															 </td>
														  </tr>
						<tr><td align="left" >Category&nbsp;<span class="required">*</span></td><td align="left">&nbsp;</td>
							<td align="left">
							<?php 
echo makeDropDownList("ddlCategory", $catlist, $ddlCategory, true, "textbox", $properties, $behaviors);
?>
							</td>
						</tr>
						<tr><td align="left" >Seller&nbsp;<span class="required">*</span></td><td >&nbsp;</td>
							<td align="left">
							<?php 
echo makeDropDownList("ddlArtist", $artistlist, $ddlArtist, true, "textbox", $properties, $behaviors);
?>
							</td>
						</tr>
						<tr><td align="left" >Stock Available&nbsp;</td><td >&nbsp;</td><td align="left"><input type="text" class="textbox" value="<?php 
echo htmlentities($txtStock);
?>
" name="txtStock" size="30" maxlength="100">&nbsp;<b>no(s)</b></td></tr>
						<tr><td align="left" >Stock Reorder Level&nbsp;</td><td >&nbsp;</td><td align="left"><input type="text"  class="textbox" value="<?php 
echo htmlentities($txtReorderLevel);
?>
" name="txtReorderLevel" size="30" maxlength="100">&nbsp;<b>no(s)
																	<br><span class="required">*</span>&nbsp;Define a minimum stock level,and reorder when stock reaches that level.</b></td></tr>
						
						<tr>
							<td align="left">Product Shipping Weight&nbsp;</td>
Beispiel #12
0
                      <tr><td colspan="3">Dept: <?php 
echo $var_departmentid;
?>
</td></tr>
					   -->
					   <tr><td colspan="3">&nbsp;</td></tr>
					  <tr>
                     <td width="13%" align="left">&nbsp;</td>
                     <td width="26%" align="left" class="fieldnames"><?php 
echo TEXT_CATEGORY;
?>
<span class="required">*</span> </td>
                     <td width="61%" align="left" class="listingmaintext">
					       
						   <?php 
echo makeDropDownList("cmbCategory", makeCategoryList(0, 0, $cmbDepartment), $cmbCategory, true, "comm_input input_width1a", "\" style=\"width:250px;\" \"", "");
?>
	
						   	
                      </td>
                      </tr>
                      <tr><td colspan="3">&nbsp;<?php 
//echo 'makeCategoryList(0,0,'.$var_departmentid.')';
?>
</td></tr>
			
                      <!--Meta tage add-->
                      <tr>
                          <td align="left">&nbsp;</td>
                          <td align="left" class="fieldnames"><?php 
echo TEXT_METAKEYWORD;
								
														
														
														
<div class="content_section_title"><h4><?php 
echo TEXT_SELECT_DEPARTMENT_AND_CATEGORY;
?>
</h4></div>			
														
														<table width="100%" align="center" border="0"  cellpadding="0" cellspacing="0" class="comm_tbl">
																<tr>
																	<td align ="left">
																	<?php 
echo makeDropDownList("ddlDepartment", makeDepartmentList(0, 0, $_SESSION['sess_usercompid']), $ddlDepartment, "comm_input width1", "\" style=\"width:270px;\" \"", "onChange=\"javascript:changeDepartment();\"");
echo "&nbsp;&nbsp;";
echo makeDropDownList("ddlCategory", makeCategoryList(0, 0, $ddlDepartment), $ddlCategory, "comm_input width1", "\" style=\"width:200px;\" \"", "onChange=\"javascript:changeCategory();\"");
?>
																	
																	</td>
																</tr>
															</table>
															
															
																	
					<div class="content_search_container">
						<div class="left rightmargin topmargin">
						<?php 
echo TEXT_SEARCH;
?>
						</div>
						
                <div class="pcm_messagebox_content ">
                    <ul>
                        <li style="list-style: none">
                            <label>Search for &nbsp;</label>
                            <input type="text" value="<?php 
echo htmlentities(stripslashes($txtSearch));
?>
" name="txtSearch" size="30" maxlength="100">
                        </li>
                        <li class="comic_sans_font" style="list-style: none">
                            <label>In Category&nbsp;</label>


                            <?php 
echo makeDropDownList("ddlCategory", $catlist, $ddlSelectedCategory, true, "textbox", $properties, $behaviors);
?>
                            &nbsp;&nbsp;
                            <input type="checkbox"  name="chkIncludeSubcategories" <?php 
if ($chkIncludeSubcategories == "1") {
    echo " CHECKED ";
}
?>
 >&nbsp; Include sub-categories

                        </li>
                        <li class="comic_sans_font" style="list-style: none">
                            <label>Match with&nbsp;</label>

                            <div class="floatleft">
                                <input type="checkbox" name="chkProductName"  <?php 
        //echo $sql . "<br>";
        $result1 = mysql_query($sql);
        $k = 1;
        $subtotal = 0;
        $ddlStatus = "ddlStatus_" . $artists[$i];
        $sellerCurrency = getSellerCurrencySybol($artists[$i]);
        $ddl = makeDropDownList($ddlStatus, $statlist, ${$ddlStatus}, false, "textbox", "", "");
        $btnStatus = "btnGo_" . $artists[$i];
        $btn = "<input class='button' type='submit' value='Go' name='" . $btnStatus . "' onClick='return confirmStatus();'> ";
        while ($rw = mysql_fetch_array($result1)) {
            $link = "<a class=links href='editmyproduct.php?productid=" . $rw["product_id"] . "'>";
            $check = "<input type='checkbox' name='chkitems[]' value='" . $rw["order_detail_id"] . "' > ";
            $rate = $rw["product_price"];
            $qty = $rw["product_quantity"];
            $artistid = $rw["artist_id"];
            $ddl = makeDropDownList($ddlStatus, $statlist, $rw['item_status'], false, "textbox", "", "");
            $btnStatus = "btnGo_" . $artists[$i];
            $btn = "<input class='button' type='submit' value='Go' name='" . $btnStatus . "' onClick='return confirmStatus();'> ";
            $rate = $rw["product_price"];
            $shippingcost = $row1["nshipping_cost"];
            $totaltax = $rw["taxrate"];
            $price = $rate * $qty;
            if ($rw["product_discount"] != "0") {
                $price = $price - $price * $rw["product_discount"] / 100;
                $discountstr = "<br>discount(" . $rw["product_discount"] . "%)";
            }
            $subtotal += $price;
            $rate = number_format($rate, 2, ".", "");
            $price = number_format($price, 2, ".", "");
            ?>