| 15 | | <tr><td valign="top"> </td> |
|---|
| 16 | | </tr> |
|---|
| 17 | | <tr> |
|---|
| 18 | | <td align="right" valign="top"> |
|---|
| 19 | | <form name="Submit" method="POST" action="index.php"> |
|---|
| 20 | | <input type=hidden name="fun" value="search"> |
|---|
| 21 | | <input type=hidden name="module" value="Faq"> |
|---|
| 22 | | <input type=hidden name="action" value="index"> |
|---|
| 23 | | <input type="text" name="search_text" value="<?php echo $search_text; ?>"> in |
|---|
| 24 | | <?php echo getSearchCombo(); ?> |
|---|
| 25 | | <input class= "crmbutton small cancel" type="submit" name="search" onclick="form.fun.value='search'" value="<?php echo getTranslatedString('LBL_SEARCH'); ?>"> |
|---|
| 26 | | </form> |
|---|
| 27 | | </td> |
|---|
| | 15 | <tr><td valign="top"> </td> |
|---|
| | 16 | </tr> |
|---|
| | 17 | <tr> |
|---|
| | 18 | <td align="right" valign="top"> |
|---|
| | 19 | <form name="Submit" method="POST" action="index.php"> |
|---|
| | 20 | <input type=hidden name="fun" value="search"> |
|---|
| | 21 | <input type=hidden name="module" value="Faq"> |
|---|
| | 22 | <input type=hidden name="action" value="index"> |
|---|
| | 23 | <input type="text" name="search_text" value="<?php echo $search_text; ?>"> in |
|---|
| | 24 | <?php echo getSearchCombo(); ?> |
|---|
| | 25 | <input class= "crmbutton small cancel" type="submit" name="search" onclick="form.fun.value='search'" value="<?php echo getTranslatedString('LBL_SEARCH'); ?>"> |
|---|
| | 26 | </form> |
|---|
| | 27 | </td> |
|---|
| 31 | | <td align="left" valign="top"> |
|---|
| 32 | | <table cellpadding="0" cellspacing="0" class="mainTab"> |
|---|
| 33 | | <tr> |
|---|
| 34 | | <td style="padding: 10px;width:20%;" valign="top"> |
|---|
| 35 | | <?PHP if((count($category_array))>0 && $category_array !=null){ ?> |
|---|
| 36 | | <table class="lftMnu" border="0" width="100%" cellspacing="0" cellpadding="0"> |
|---|
| 37 | | <tr> |
|---|
| 38 | | <td><a href="javascript:;toggleView('category')"><img id="categoryimg" src="images/minus.gif" border="0" align="absmiddle"></a></td> |
|---|
| 39 | | <td><a href="javascript:;toggleView('category')"><img src="images/category.gif" border="0" align="absmiddle"></a></td> |
|---|
| 40 | | <td><a href="javascript:;toggleView('category')" class="kbNavHead"><?php echo getTranslatedString('LNK_CATEGORY'); ?></a></td> |
|---|
| 41 | | </tr> |
|---|
| 42 | | <tr> |
|---|
| 43 | | <td></td> |
|---|
| 44 | | <td></td> |
|---|
| 45 | | <td> |
|---|
| 46 | | <div id="category" style="display:block"> |
|---|
| 47 | | <table border="0" width="100%" cellspacing="0" cellpadding="0"> |
|---|
| 48 | | <?php |
|---|
| 49 | | for($i=0,$j=1;$i<count($category_array);$i++,$j++) |
|---|
| 50 | | { |
|---|
| 51 | | $noof_faqs = getNoofFaqsPerCategory($category_array[$i]); |
|---|
| 52 | | if(is_string($_REQUEST['category_index'])){ |
|---|
| 53 | | $category_index = (int)$_REQUEST['category_index']; |
|---|
| 54 | | } |
|---|
| 55 | | ?> |
|---|
| 56 | | <tr> |
|---|
| 57 | | <td nowrap><a class="hdr" href="index.php?module=Faq&action=index&fun=faqs&category_index=<?php echo $i; ?>"> |
|---|
| 58 | | <?php if($category_index === $i) |
|---|
| 59 | | echo '<b>'.text_length($category_array[$i]).'</b>'; |
|---|
| 60 | | else |
|---|
| 61 | | echo text_length($category_array[$i]); |
|---|
| 62 | | ?> |
|---|
| 63 | | </a> <span class="hdr"> |
|---|
| 64 | | <?php if($category_index === $i) |
|---|
| 65 | | echo '<b>'.'('.$noof_faqs.')'.'</b>'; |
|---|
| 66 | | else |
|---|
| 67 | | echo '('.$noof_faqs.')'; |
|---|
| 68 | | ?></span></td> |
|---|
| 69 | | </tr> |
|---|
| 70 | | <?php |
|---|
| 71 | | } |
|---|
| 72 | | ?> |
|---|
| | 31 | <td align="left" valign="top"> |
|---|
| | 32 | <table cellpadding="0" cellspacing="0" class="mainTab"> |
|---|
| | 33 | <?PHP if(!empty($faq_array)){ ?> |
|---|
| | 34 | <tr> |
|---|
| | 35 | <td style="padding: 10px;width:20%;" valign="top"> |
|---|
| | 36 | <?PHP if((count($category_array))>0 && $category_array !=null){ ?> |
|---|
| | 37 | <table class="lftMnu" border="0" width="100%" cellspacing="0" cellpadding="0"> |
|---|
| | 38 | <tr> |
|---|
| | 39 | <td><a href="javascript:;toggleView('category')"><img id="categoryimg" src="images/minus.gif" border="0" align="absmiddle"></a></td> |
|---|
| | 40 | <td><a href="javascript:;toggleView('category')"><img src="images/category.gif" border="0" align="absmiddle"></a></td> |
|---|
| | 41 | <td><a href="javascript:;toggleView('category')" class="kbNavHead"><?php echo getTranslatedString('LNK_CATEGORY'); ?></a></td> |
|---|
| | 42 | </tr> |
|---|
| | 43 | <tr> |
|---|
| | 44 | <td></td> |
|---|
| | 45 | <td></td> |
|---|
| | 46 | <td> |
|---|
| | 47 | <div id="category" style="display:block"> |
|---|
| | 48 | <table border="0" width="100%" cellspacing="0" cellpadding="0"> |
|---|
| | 49 | <?php |
|---|
| | 50 | for($i=0,$j=1;$i<count($category_array);$i++,$j++){ |
|---|
| | 51 | $noof_faqs = getNoofFaqsPerCategory($category_array[$i]); |
|---|
| | 52 | if(is_string($_REQUEST['category_index'])){ |
|---|
| | 53 | $category_index = (int)$_REQUEST['category_index']; |
|---|
| | 54 | } |
|---|
| | 55 | ?> |
|---|
| | 56 | <tr> |
|---|
| | 57 | <td nowrap><a class="hdr" href="index.php?module=Faq&action=index&fun=faqs&category_index=<?php echo $i; ?>"> |
|---|
| | 58 | <?php if($category_index === $i) |
|---|
| | 59 | echo '<b>'.text_length($category_array[$i]).'</b>'; |
|---|
| | 60 | else |
|---|
| | 61 | echo text_length($category_array[$i]); |
|---|
| | 62 | ?> |
|---|
| | 63 | </a> <span class="hdr"> |
|---|
| | 64 | <?php if($category_index === $i) |
|---|
| | 65 | echo '<b>'.'('.$noof_faqs.')'.'</b>'; |
|---|
| | 66 | else |
|---|
| | 67 | echo '('.$noof_faqs.')'; |
|---|
| | 68 | ?></span></td> |
|---|
| | 69 | </tr> |
|---|
| | 70 | <?php } ?> |
|---|
| | 71 | </table> |
|---|
| | 72 | </div> |
|---|
| | 73 | </td> |
|---|
| | 74 | </tr> |
|---|
| 74 | | </div> |
|---|
| 75 | | </td> |
|---|
| 76 | | </tr> |
|---|
| 77 | | </table> |
|---|
| 78 | | <?PHP } ?> |
|---|
| 79 | | <?PHP if($product_array != null) { ?> |
|---|
| 80 | | <table class="lftMnu" border="0" width="100%" cellspacing="0" cellpadding="0"> |
|---|
| 81 | | <tr> |
|---|
| 82 | | <td><a href="javascript:;toggleView('products_array')"><img id="products_arrayimg" src="images/minus.gif" border="0" align="absmiddle"></a></td> |
|---|
| 83 | | <td><a href="javascript:;toggleView('products_array')"><img src="images/products.gif" border="0" align="absmiddle"></a></td> |
|---|
| 84 | | <td><a href="javascript:;toggleView('products_array')" class="kbNavHead"><?php echo getTranslatedString('LNK_PRODUCTS'); ?></a></td> |
|---|
| 85 | | </tr> |
|---|
| 86 | | <tr> |
|---|
| 87 | | <td></td> |
|---|
| 88 | | <td></td> |
|---|
| 89 | | <td> |
|---|
| 90 | | <div id="products_array" style="display:block"> |
|---|
| 91 | | <table border="0" width="100%" cellspacing="0" cellpadding="0"> |
|---|
| 92 | | <?php |
|---|
| 93 | | for($i=0,$j=1;$i<count($product_array);$i++,$j++) |
|---|
| 94 | | { |
|---|
| 95 | | $noof_faqs = getNoofFaqsPerProduct($product_array[$i]['productid']); |
|---|
| 96 | | ?> |
|---|
| 97 | | <tr> |
|---|
| 98 | | <td nowrap> |
|---|
| 99 | | <a class="hdr" href="index.php?module=Faq&action=index&fun=faqs&productid=<?php echo $product_array[$i]['productid']; ?>"> |
|---|
| 100 | | <?php if($_REQUEST['productid'] == $product_array[$i]['productid']) |
|---|
| 101 | | echo '<b>'.$product_array[$i]['productname'].'</b>'; |
|---|
| 102 | | else |
|---|
| 103 | | echo $product_array[$i]['productname']; |
|---|
| 104 | | ?> |
|---|
| 105 | | </a> <span class="hdr"> |
|---|
| 106 | | <?php if($_REQUEST['productid'] == $product_array[$i]['productid']) |
|---|
| 107 | | echo '<b>'.'('.$noof_faqs.')'.'</b>'; |
|---|
| 108 | | else |
|---|
| 109 | | echo '('.$noof_faqs.')'; |
|---|
| 110 | | ?></span> |
|---|
| | 76 | <?PHP } ?> |
|---|
| | 77 | <?PHP if($product_array != null) { ?> |
|---|
| | 78 | <table class="lftMnu" border="0" width="100%" cellspacing="0" cellpadding="0"> |
|---|
| | 79 | <tr> |
|---|
| | 80 | <td><a href="javascript:;toggleView('products_array')"><img id="products_arrayimg" src="images/minus.gif" border="0" align="absmiddle"></a></td> |
|---|
| | 81 | <td><a href="javascript:;toggleView('products_array')"><img src="images/products.gif" border="0" align="absmiddle"></a></td> |
|---|
| | 82 | <td><a href="javascript:;toggleView('products_array')" class="kbNavHead"><?php echo getTranslatedString('LNK_PRODUCTS'); ?></a></td> |
|---|
| | 83 | </tr> |
|---|
| | 84 | <tr> |
|---|
| | 85 | <td></td> |
|---|
| | 86 | <td></td> |
|---|
| | 87 | <td> |
|---|
| | 88 | <div id="products_array" style="display:block"> |
|---|
| | 89 | <table border="0" width="100%" cellspacing="0" cellpadding="0"> |
|---|
| | 90 | <?php |
|---|
| | 91 | for($i=0,$j=1;$i<count($product_array);$i++,$j++) { |
|---|
| | 92 | $noof_faqs = getNoofFaqsPerProduct($product_array[$i]['productid']); |
|---|
| | 93 | ?> |
|---|
| | 94 | <tr> |
|---|
| | 95 | <td nowrap> |
|---|
| | 96 | <a class="hdr" href="index.php?module=Faq&action=index&fun=faqs&productid=<?php echo $product_array[$i]['productid']; ?>"> |
|---|
| | 97 | <?php if($_REQUEST['productid'] == $product_array[$i]['productid']) |
|---|
| | 98 | echo '<b>'.$product_array[$i]['productname'].'</b>'; |
|---|
| | 99 | else |
|---|
| | 100 | echo $product_array[$i]['productname']; |
|---|
| | 101 | ?> |
|---|
| | 102 | </a> <span class="hdr"> |
|---|
| | 103 | <?php if($_REQUEST['productid'] == $product_array[$i]['productid']) |
|---|
| | 104 | echo '<b>'.'('.$noof_faqs.')'.'</b>'; |
|---|
| | 105 | else |
|---|
| | 106 | echo '('.$noof_faqs.')'; |
|---|
| | 107 | ?></span> |
|---|
| | 108 | </td> |
|---|
| | 109 | </tr> |
|---|
| | 110 | <?php } ?> |
|---|
| | 111 | </table> |
|---|
| | 112 | </div> |
|---|