Skip to content

Удирдлагын хуудас / сонгосон мэдээллийн жагсаалтыг харах /

November 1, 2006

Вэбсофт Монгол ХХК-ын вэб боловсруулах программын эх кодыг та бүхэнд танилцуулж байна
<?
   if(!isset($sell))$sell=0;
   if(!isset($start)) $start=0; 
   $limit=($start+1)*$bagts;  
   $t=$start*$bagts; 
  $links = “”;
  $adds = “”;
  $madd = “”;
  $edits = “”;
  $del = “”;     

 switch($admin[$sel]){
  case “admin”:
   $review = mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].””);
   $links = “”;
   $adds = “main.php?pmsg=1&sel=”.$sel;
   $madd = “main.php?pmsg=0&sel=”.$sel.”&id=”;
   $edits = “main.php?pmsg=1&sel=”.$sel.”&id=”;
   $del = “exec.php?sel=”.$sel.”&fix=del&id=”;
  break;
  case “about”:
   $review = mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].””);
   $links=””;
   $adds = “main.php?pmsg=1&sel=”.$sel;
   $madd = “”;
   $edits = “main.php?pmsg=1&sel=”.$sel.”&id=”;
   $del = “exec.php?sel=”.$sel.”&fix=del&id=”;
  break;
  case “order_news”:
   $review = mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].””);
   $links = “”;
   $adds = “main.php?pmsg=1&sel=”.$sel;
   $madd = “main.php?pmsg=0&sel=”.$sel.”&id=”;
   $edits = “main.php?pmsg=1&sel=”.$sel.”&id=”;
   $del = “exec.php?sel=”.$sel.”&fix=del&id=”;
  break;
  case “right_menu”:
   if(!isset($menu_menu))
   $menu_menu = 0;
   $review = mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].” WHERE menu_menu = “.$menu_menu.” order by rang”);
   $links = “main.php?pmsg=0&sel=”.$sel.”&menu_menu=”;
   $adds = “main.php?pmsg=1&menu_menu=”.$menu_menu.”&sel=”.$sel;
   $edits = “main.php?pmsg=1&menu_menu=”.$menu_menu.”&sel=”.$sel.”&id=”;
   $del = “exec.php?sel=”.$sel.”&menu_menu=”.$menu_menu.”&fix=del&id=”;
  break;
  case “main_menu”:
   if(!isset($menu_menu))
   $menu_menu = 0;
   $review = mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].” WHERE menu_menu = “.$menu_menu.” order by rang”);
   $links = “main.php?pmsg=0&sel=”.$sel.”&menu_menu=”;
   $adds = “main.php?pmsg=1&menu_menu=”.$menu_menu.”&sel=”.$sel;
   $edits = “main.php?pmsg=1&menu_menu=”.$menu_menu.”&sel=”.$sel.”&id=”;
   $del = “exec.php?sel=”.$sel.”&menu_menu=”.$menu_menu.”&fix=del&id=”;
  break;
  case “left_menu”:
   if(!isset($menu_menu))
   $menu_menu = 0;
   $review = mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].” WHERE menu_menu = “.$menu_menu.” order by rang”);
   $links = “main.php?pmsg=0&sel=”.$sel.”&menu_menu=”;
   $adds = “main.php?pmsg=1&menu_menu=”.$menu_menu.”&sel=”.$sel;
   $edits = “main.php?pmsg=1&menu_menu=”.$menu_menu.”&sel=”.$sel.”&id=”;
   $del = “exec.php?sel=”.$sel.”&menu_menu=”.$menu_menu.”&fix=del&id=”;
  break;
  case “sub_type”:
   if(!isset($menu_r)) $menu_r = ‘0’;
   $review = mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].” WHERE type_id ='”.$id.”‘ and menu_r = $menu_r order by rang”);
   $links = “”;
   $adds = “main.php?pmsg=1&menu_r=$menu_r&sel=”.$sel.”&type_id=”.$id;
   $madd = “main.php?pmsg=0&menu_r=$menu_r&sel=”.$sel.”&type_id=”.$id.”&id=”;
   $edits = “main.php?pmsg=1&menu_r=$menu_r&sel=”.$sel.”&type_id=”.$id.”&id=”;
   $del = “exec.php?sel=”.$sel.”&menu_r=$menu_r&type_id=”.$id.”&fix=del&id=”;
  break;
  case “news”:
   $review = mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].” WHERE type_id ='”.$type_id.”‘ and sel = ‘”.$l_sel.”‘ “);
   $links = “”;
   $adds = “main.php?pmsg=1&sel=”.$sel.”&l_sel=”.$l_sel.”&type_id=”.$type_id;
   $madd = “main.php?pmsg=0&sel=”.$sel.”&l_sel=”.$l_sel.”&type_id=”.$type_id.”&id=”;
   $edits = “main.php?pmsg=1&sel=”.$sel.”&l_sel=”.$l_sel.”&type_id=”.$type_id.”&id=”;
   $del = “exec.php?sel=”.$sel.”&l_sel=”.$l_sel.”&type_id=”.$type_id.”&fix=del&id=”;
  break;
  case “presentation”:
   $review=mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].” WHERE page_id = $page_id AND sel=’$sel1′”);
   $links = “”;
   $adds = “main.php?pmsg=1&sel=$sel&sel1=$sel1&page_id=$page_id”;
   $madd = “main.php?pmsg=0&sel=”.$sel.”&l_sel=”.$l_sel.”&type_id=”.$type_id.”&id=”;
   $edits = “main.php?pmsg=1&sel=$sel&sel1=$sel1&page_id=$page_id&id=”;
   $del = “exec.php?sel=”.$sel.”&sel1=”.$sel1.”&page_id=”.$page_id.”&fix=del&id=”;
  break;
  case “links_groups”:
   $review=mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].” WHERE page_id = $page_id”);
   $links = “main.php?pmsg=0&sel=5&group_id=”.$rowview->id.””;
   $adds = “main.php?pmsg=1&sel=$sel&page_id=$page_id”;
   $madd = “main.php?pmsg=0&sel=”.$sel.”&page_id=”.$page_id.”&id=”;
   $edits = “main.php?pmsg=1&sel=$sel&page_id=$page_id&id=”;
   $del = “exec.php?sel=”.$sel.”&page_id=”.$page_id.”&fix=del&id=”;
  break;
  case “links”:
   $review=mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].” WHERE group_id = $group_id”);      
   $links = “”;
   $adds = “main.php?pmsg=1&sel=$sel&group_id=$group_id”;
   $madd = “main.php?pmsg=0&sel=”.$sel.”&group_id=”.$group_id.”&id=”;
   $edits = “main.php?pmsg=1&sel=$sel&group_id=$group_id&id=”;
   $del = “exec.php?sel=”.$sel.”&group_id=”.$group_id.”&fix=del&id=”;
  break;
  case “contact”:
   $review=mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].” WHERE page_id=”.$page_id);      
   $links = “”;
   $adds = “main.php?pmsg=1&sel=$sel&page_id=$page_id”;
   $madd = “main.php?pmsg=0&sel=”.$sel.”&page_id=”.$page_id.”&id=”;
   $edits = “main.php?pmsg=1&sel=$sel&page_id=$page_id&id=”;
   $del = “exec.php?sel=”.$sel.”&page_id=”.$page_id.”&fix=del&id=”;
  break;
  case “vote”:
   $review=mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].” WHERE page_id = $page_id”);
   $links = “main.php?pmsg=0&sel=14&group_id=”.$rowview->id.””;
   $adds = “main.php?pmsg=1&sel=$sel&page_id=$page_id”;
   $madd = “main.php?pmsg=0&sel=”.$sel.”&page_id=”.$page_id.”&id=”;
   $edits = “main.php?pmsg=1&sel=$sel&page_id=$page_id&id=”;
   $del = “exec.php?sel=”.$sel.”&page_id=”.$page_id.”&fix=del&id=”;
  break;
  case “vote_sub”:
   $review=mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].” WHERE group_id = $group_id”);      
   $links = “”;
   $adds = “main.php?pmsg=1&sel=$sel&group_id=$group_id”;
   $madd = “main.php?pmsg=0&sel=”.$sel.”&group_id=”.$group_id.”&id=”;
   $edits = “main.php?pmsg=1&sel=$sel&group_id=$group_id&id=”;
   $del = “exec.php?sel=”.$sel.”&group_id=”.$group_id.”&fix=del&id=”;
  break;
  case “banner”:
   $review=mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].” WHERE 1″);      
   $links = “”;
   $adds = “main.php?pmsg=1&sel=$sel”;
   $madd = “main.php?pmsg=0&sel=”.$sel.”&id=”;
   $edits = “main.php?pmsg=1&sel=$sel&id=”;
   $del = “exec.php?sel=”.$sel.”&fix=del&id=”;
  break; 
  case “news_images”:
   $review = mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel].” WHERE 1 “);
   $links = “main.php?sel=15&nid=”;
   $adds = “main.php?pmsg=1&sel=”.$sel;
   $madd = “main.php?pmsg=0&sel=”.$sel.”&id=”;
   $edits = “main.php?pmsg=1&sel=”.$sel.”&id=”;
   $del = “exec.php?sel=”.$sel.”&fix=del&id=”;
  break; 
  default:
   $review=mysql_query(“SELECT * FROM $tbl_pref”.$admin[$sel]);
  break;
   }
  
   if(isset($deactive))
 {
 
 
  $qmenu=mysql_query(“select * from  $tbl_news_menu where menu_id = “.$menu_menu.” and menu_type = ‘$m_t'”);
  while($rmenu=mysql_fetch_object($qmenu))
  {
   $menu_s = $rmenu->news_id;
   if(isset($_POST[“news_forum_”.$menu_s]))
    {
     mysql_query(“delete from $tbl_news_menu where menu_id = “.$menu_menu.” and menu_type = ‘$m_t’ and news_id = $menu_s”);
    } 
 }}
 
  if(isset($pro_deactive_01))
 {
 
 
  $qmenu=mysql_query(“select pro_id from  $tbl_pro_menu where menu_id = “.$menu_menu.” and menu_type = ‘$m_t'”);
  while($rmenu=mysql_fetch_object($qmenu))
  {
   $pro_ids = $rmenu->pro_id;
   if(isset($_POST[“pro_forum_”.$pro_ids]))
    {
     mysql_query(“delete from $tbl_pro_menu where menu_id = “.$menu_menu.” and menu_type = ‘$m_t’ and pro_id = $pro_ids”);
    } 
 }}
 
 //active
 
 if(isset($active_ok)){
 $i=0;
 $sub_type_query = mysql_query(“SELECT mnname,id FROM $tbl_pref”.$admin[$sel].” WHERE menu_menu = “.$menu_menu.” order by rang”);
  while($sub_type_object = mysql_fetch_object($sub_type_query)){
  {
   $menu_s = $sub_type_object->id;
   if(isset($_POST[“sub_type_”.$menu_s]))
    {
    $sub_type_arr[$i]=$menu_s;
    $i++;
    }
 
 }
 }
 if($sub_type_arr[0]!=”” and $news_id_arr[0]!=””){
 $j=0;
 while($sub_type_arr[$j]){
 $i=0;
 while($news_id_arr[$i]){
  sub_menu_reg($tbl_news_menu,$sub_type_arr[$j], $news_id_arr[$i], $m_t); 
  $i++;
  }
  $j++;
  } 
 }
 }
?>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>  
<style type=”text/css”>
<!–
.style1 {color: #000000}
.style2 {
 color: #000000;
 font-weight: bold;
}
–>
</style>
<table width=”100%” cellpadding=”5″ cellspacing=”2″>
<? if($menu_menu !=0){?>
<tr bgcolor=”#666666″>
    <td colspan=”4″ bgcolor=”#666666″ class=”title_white” style=”padding:5px;”>
      <?
  if($sel == 1) { $tid = “top”;}
    if($sel == 18){ $tid = “left”;}
   if($sel == 17) {$tid = “right”;}
   if(!isset($menu_menu)) $menu_menu=0;
      $where05 = “menu_id = “.$menu_menu.” and menu_type = ‘$tid'”;
 
 $remenu_name=mysql_query(“SELECT mnname FROM $tbl_pref”.$admin[$sel].” WHERE id = $menu_menu”);
 $rowmenu_name=mysql_fetch_object($remenu_name);
 echo “<<“.$rowmenu_name->mnname.”>>”;
 ?> хуудасны тохиргоо </td>
  </tr>
  <? }?>
<tr bgcolor=”#efefef”>
  <td height=”25″ colspan=4 bgcolor=”#ededed”>
    <span class=”style2″>
   
  <? if($menu_menu == 0) { echo $vtitle[$sel]?>
  зохицуулах
  <? }
  else echo $rowmenu_name->mnname.” – ийн дэд меню”;
  ?> 
    </span> </td>
</tr>
<tr>
 <td width=”70″ bgcolor=”#FFFFFF”></td>
 <td align=’left’ bgcolor=’#FFFFFF’><a href='<?=$adds.”&opage_type=”.$page_type?>’><img src=’../images/btn_add.jpg’ width=60 height=19 border=0 align=’absmiddle’></a></td>
<td bgcolor=”#FFFFFF”></td>
</tr>
<? 
 if($tnum=mysql_num_rows($review))  mysql_data_seek($review,$t);
 $count=0;       
 while($rowview=mysql_fetch_object($review)){
 $active_check=true;      
?>
<tr bgcolor=”#FFFFFF”> 
  <td height=”25″ align=”center”>
      <a href=”<?=$edits.$rowview->id.” mce_href=”<?=$edits.$rowview->id.”&opage_type=”.$page_type?>”>
       <img src=”../images/btn_edit.jpg” mce_src=”../images/btn_edit.jpg” width=”50″ height=”19″ border=”0″ align=”absmiddle”>      </a>  </td>
  <td width=”70″ height=”25″ align=”center”>
      <a href=”<?=$del.$rowview->id.” mce_href=”<?=$del.$rowview->id.”&page_type=”.$page_type?>” onClick=”return confirm(‘Устгах уу?’)”>
   <img src=”../images/btn_del.jpg” mce_src=”../images/btn_del.jpg” width=”50″ height=”19″ border=”0″></a>  </td>
    <td width=”100%” height=”25″ align=”left”><? if($links!=””){?><a href=”<?=$links.$rowview->id.” mce_href=”<?=$links.$rowview->id.”&page_type=”.$rowview->page_type?>”>
      <?
 echo $rowview->$fieldname[$sel];
  ?></a><? } else
  echo $rowview->$fieldname[$sel];
  ?> <?
  if($rowview->new_new == “1”) echo ”   <sup style=’color: red;’>шинэ</sup>”;
  ?>    </td>
</tr>
<? $count++; } ?>
<tr bgcolor=”#FFFFFF”><td height=”25″ colspan=4 align=”right”><a href=”javascript: history.back(-1)”><font color=”#666666″>буцах</font></a></td>
</tr>
</table>
<? if(($sel==1 or $sel==18 or $sel==17) and $menu_menu !=0 and ( $page_type == 1 or $page_type == 2)){
if(!isset($active)){
?>
<table width=”100%” border=”0″ cellspacing=”2″ cellpadding=”5″>
  <form method=”post” name=”news_forum” action=”#” enctype=”multipart/form-data”>
  <tr bgcolor=”#666666″>
      <td colspan=”5″ bgcolor=”#CCCCCC” style=”border:1px #fff solid”><font color=”#000″><strong><? echo $rowmenu_name->mnname.” – д багтах мэдээл мэдээлэл”;?></strong></font></td>
    </tr>
    <tr bgcolor=”#ededed”>
      <td>№</td>
      <td> </td>
      <td bgcolor=”#ededed”><span class=”style1″>Мэдээний нэр</span></td>
      <td><span class=”style1″>Оруулсан огноо</span></td>
      <td><span class=”style1″>Засварлах</span></td>
    </tr>
 <tr bgcolor=”#FFFFFF”>
      <td> </td>
      <td colspan=”4″><input name=”all_check” type=”checkbox” 
   onclick=”<?
   $news_menu_query1=mysql_query(“SELECT news_id FROM $tbl_news_menu WHERE “.$where05.” GROUP BY news_id ORDER BY  news_id DESC “);
  while($rowview051 =mysql_fetch_object($news_menu_query1)){ 
  $news_id1 = $rowview051->news_id;
    ?>form.news_forum_<?=$news_id1;?>.checked=true
   <?  }
   ?>
   form.all_no_check.checked=false
   “/>
бүгдийг нь сонгох
       
        |
  <input name=”all_no_check” type=”checkbox” 
   onclick=”<?
   $news_menu_query2=mysql_query(“SELECT news_id FROM $tbl_news_menu WHERE “.$where05.” GROUP BY news_id ORDER BY  news_id DESC “);
  while($rowview052 =mysql_fetch_object($news_menu_query2)){ 
  $news_id2 = $rowview052->news_id;
    ?>form.news_forum_<?=$news_id2;?>.checked=false
   <?  }?>
   form.all_check.checked=false
   “/>
бүгдийг нь vл сонгох </td>
    </tr>
    <?
 
  $j=1;
  $news_menu_query=mysql_query(“SELECT news_id FROM $tbl_news_menu WHERE “.$where05.” GROUP BY news_id ORDER BY  news_id DESC “);
  while($rowview05 =mysql_fetch_object($news_menu_query)){ 
  $news_id = $rowview05->news_id;
 $remenu05=mysql_query(“SELECT id,mntitle,edate FROM $tbl_prefnews WHERE id = $news_id ORDER By edate DESC”);
 $rowmenu05=mysql_fetch_object($remenu05);
  ?>
    <tr bgcolor=”#FFFFFF”>
      <td width=”2%”><?=$j?></td>
      <td width=”3%”><input type=”checkbox” name=”news_forum_<?=$rowmenu05->id;?>” /></td>
      <td width=”65%”>
        <?=$rowmenu05->mntitle?>      </td>
      <td width=”15%”>
        <?=$rowmenu05->edate?>      </td>
      <td width=”15%”><a href=”main.php?pmsg=1&sel=3&sel_2=<?=$sel?>&id=<?=$rowmenu05->id?>&menu_menu=<?=$menu_menu?>&page_type=<?=$page_type?>” mce_href=”main.php?pmsg=1&sel=3&sel_2=<?=$sel?>&id=<?=$rowmenu05->id?>&menu_menu=<?=$menu_menu?>&page_type=<?=$page_type?>”><img src=”../images/btn_edit.jpg” mce_src=”../images/btn_edit.jpg” width=”50″ height=”19″ border=”0″ align=”absmiddle”></a></td>
    </tr>
    <? $j++; }?>
    <tr bgcolor=”#FFFFFF”>
      <td height=”34″ colspan=”3″>
      <input type=”hidden” name=”m_t” value=”<?=$tid?>”>
   <input type=”hidden” name=”menu_menu” value=”<?=$menu_menu?>”>
   <input type=”hidden” name=”sel_1″ value=”<?=$sel?>”>
   <input type=”hidden” name=”page_type” value=”<?=$page_type?>”>
   <input type=”hidden” name=”menu_news_id” value=”<?=$menu_menu?>”>
   <input name=”add_ss”  type=”image” src=”../images/btn_add.jpg” mce_src=”../images/btn_add.jpg” width=”60″ height=”19″ border=”0″ onClick=”javacsript: window.document.news_forum.action = ‘main.php?pmsg=1&sel=3’ “>
        <input name=”deactive” type=”image” src=”../images/btn_deactive.jpg” mce_src=”../images/btn_deactive.jpg” width=”60″ height=”19″ border=”0″ onClick=”javacsript: window.document.news_forum.action = ‘main.php?pmsg=0&page_type=<?=$page_type?>&deactive=true&sel=<?=$sel?>’ “>
  <? if($active_check){?>
        <input name=”active” type=”image” src=”../images/btn_active.jpg” mce_src=”../images/btn_active.jpg” width=”50″ height=”19″ border=”0″  onClick=”javacsript: window.document.news_forum.action = ‘main.php?pmsg=0&page_type=<?=$page_type?>&active=true&sel=<?=$sel?>’ “></td>
  <? }?>
      <td><input name=”imageField3″ type=”image” src=”../images/btn_del.jpg” mce_src=”../images/btn_del.jpg” width=”50″ height=”19″ border=”0″ onClick=”javacsript:   if( confirm(‘Та эдгээр хэрэглэгчдийг устгахдаа итгэлтэй байна уу ?’) ) {window.document.frm_users.submit(1);  window.document.frm_users.action = ‘main.php?esel=18&f=dels’ }  else  {window.document.frm_users.submit(1);   } “>      </td>
      <td> </td>
    </tr>
  </form>
</table>
<? }
else {
$qmenu=mysql_query(“select * from  $tbl_news_menu where menu_id = “.$menu_menu.” and menu_type = ‘$m_t'”);
  $j=0;
  while($rmenu=mysql_fetch_object($qmenu))
  {
   $menu_s = $rmenu->news_id;
   if(isset($_POST[“news_forum_”.$menu_s]))
    {
     $news_id_arr[$j] = $menu_s;
    } 
  $j++;
 }

?>

<table width=”100%” border=”0″ cellspacing=”2″ cellpadding=”5″>
  <form method=”post” name=”sub_type_forum” action=”#” enctype=”multipart/form-data”>
  <tr bgcolor=”#666666″>
      <td colspan=”5″ bgcolor=”#CCCCCC” style=”border:1px #fff solid”><font color=”#000″><strong><? echo $rowmenu_name->mnname.” – ын дэд меню-д сонгосон мэдээгээ бүртгэх”;?></strong></font></td>
    </tr>
    <tr bgcolor=”#ededed”>
      <td>№</td>
      <td> </td>
      <td colspan=”3″ bgcolor=”#ededed”><span class=”style1″>Дэд төрлийн  нэр</span></td>
    </tr>
 <tr bgcolor=”#FFFFFF”>
      <td> </td>
      <td colspan=”4″><input name=”all_check” type=”checkbox” 
   onclick=”<?
   $sub_type_query1 = mysql_query(“SELECT id FROM $tbl_pref”.$admin[$sel].” WHERE menu_menu = “.$menu_menu.” order by rang”);
  while($sub_type_object1 = mysql_fetch_object($sub_type_query1)){  
  $news_id1 = $sub_type_object1->id;
    ?>this.form.sub_type_<?=$news_id1;?>.checked=true
   <?  }
   ?>
   form.all_no_check.checked=false
   “/>
бүгдийг нь сонгох
       
        |
  <input name=”all_no_check” type=”checkbox” 
   onclick=”<?
  $sub_type_query2 = mysql_query(“SELECT mnname,id FROM $tbl_pref”.$admin[$sel].” WHERE menu_menu = “.$menu_menu.” order by rang”);
  while($sub_type_object2 = mysql_fetch_object($sub_type_query2)){  
  $news_id2 = $sub_type_object2->id;
    ?>this.form.sub_type_<?=$news_id2;?>.checked=false
   <?  }?>
   form.all_check.checked=false
   “/>
бүгдийг нь vл сонгох </td>
    </tr>
    <?
   $j=1;
  $sub_type_query = mysql_query(“SELECT mnname,id FROM $tbl_pref”.$admin[$sel].” WHERE menu_menu = “.$menu_menu.” order by rang”);
  while($sub_type_object = mysql_fetch_object($sub_type_query)){ 
  ?>
    <tr bgcolor=”#FFFFFF”>
      <td width=”2%”><?=$j?></td>
      <td width=”3%”><input type=”checkbox” name=”sub_type_<?=$sub_type_object->id;?>” /></td>
      <td colspan=”3″>
        <?=$sub_type_object->mnname?></td>
    </tr>
    <? $j++; }?>
    <tr bgcolor=”#FFFFFF”>
      <td height=”34″ colspan=”3″>
      <input type=”hidden” name=”m_t” value=”<?=$m_t?>”>
   <?
   $i=0;
   while($news_id_arr[$i]){
   ?>
   <input type=”hidden” name=”news_id_arr[<?=$i?>]” value=”<?=$news_id_arr[$i]?>” />  
   <? $i++; }?>
   <input type=”hidden” name=”menu_menu” value=”<?=$menu_menu?>”>
   <input type=”hidden” name=”sel_1″ value=”<?=$sel?>”>
   <input type=”hidden” name=”page_type” value=”<?=$page_type?>”>
   <input type=”hidden” name=”menu_news_id” value=”<?=$menu_menu?>”>
   <input name=”active_ok” type=”image” src=”../images/btn_active.jpg” mce_src=”../images/btn_active.jpg” width=”50″ height=”19″ border=”0″  onclick=”javacsript: window.document.sub_type_forum.action = ‘main.php?pmsg=0&page_type=<?=$page_type?>&active_ok=true&sel=<?=$sel?>’ ” /></td>
      <td width=”15%”> </td>
      <td width=”15%”> </td>
    </tr>
  </form>
</table>

<? } }
if($menu_menu !=0 and  $page_type == 7){ ?>
<table width=”100%” border=”0″ cellspacing=”2″ cellpadding=”5″>
  <form method=”post” name=”bs_forum” action=”#” enctype=”multipart/form-data”>
  <tr bgcolor=”#666666″>
      <td colspan=”7″ bgcolor=”#CCCCCC” style=”border:1px #fff solid”><font color=”#000″><strong>
   <? echo $rowmenu_name->mnname.” – д багтах номнууд”;?></strong></font></td>
    </tr>
    <tr bgcolor=”#ededed”>
      <td>№</td>
      <td> </td>
      <td><span class=”style1″>Бүртгэлийн дугаар</span></td>
      <td><span class=”style1″>Номын нэр</span></td>
      <td><span class=”style1″>Хэвлэгдсэн огноо</span></td>
      <td><span class=”style1″>Оруулсан огноо</span></td>
      <td><span class=”style1″>Засварлах</span></td>
    </tr>
 <tr bgcolor=”#FFFFFF”>
      <td> </td>
      <td colspan=”6″><input name=”all_check” type=”checkbox” 
   onclick=”<?
   $news_menu_query1=mysql_query(“SELECT bs_id FROM $tbl_bs_menu WHERE “.$where05.” GROUP BY bs_id ORDER BY  bs_id DESC “);
  while($rowview051 =mysql_fetch_object($news_menu_query1)){ 
  $bs_id1 = $rowview051->bs_id;
    ?>form.bs_forum_<?=$bs_id1;?>.checked=true
   <?  }
   ?>
   form.all_no_check.checked=false
   “/>
бүгдийг нь сонгох
       
        |
  <input name=”all_no_check” type=”checkbox” 
   onclick=”<?
  $news_menu_query2=mysql_query(“SELECT bs_id FROM $tbl_bs_menu WHERE “.$where05.” GROUP BY zar_id ORDER BY zar_id DESC “);
  while($rowview052 =mysql_fetch_object($news_menu_query2)){ 
  $bs_id2 = $rowview052->bs_id;
    ?>form.bs_forum_<?=$bs_id2;?>.checked=false
   <?  }?>
   form.all_check.checked=false
   “/>
бүгдийг нь vл сонгох </td>
    </tr>
    <?
 
  $j=1;
  $news_menu_query=mysql_query(“SELECT bs_id FROM $tbl_bs_menu WHERE “.$where05.” GROUP BY bs_id ORDER BY  bs_id DESC “);
  while($rowview05 =mysql_fetch_object($news_menu_query)){ 
  $bs_id = $rowview05->bs_id;
 $remenu05=mysql_query(“SELECT * FROM $tbl_bookshop WHERE bs_id = $bs_id ORDER By bs_id DESC”);
 $rowmenu05=mysql_fetch_object($remenu05);
  ?>
    <tr bgcolor=”#FFFFFF”>
      <td width=”2%”><?=$j?></td>
      <td width=”3%”><input type=”checkbox” name=”bs_forum_<?=$rowmenu05->bs_id;?>” /></td>
      <td width=”20%”><?=$rowmenu05->bs_serial?></td>
      <td width=”30%”><?=$rowmenu05->mnname?></td>
      <td width=”16%”><?=$rowmenu05->bs_fdate?></td>
      <td width=”15%”>
        <?=$rowmenu05->bs_ldate?>      </td>
      <td width=”15%”><a href=”main.php?pmsg=11&sel=<?=$sel?>&obj_id=<?=$rowmenu05->bs_id?>&menu_menu=<?=$menu_menu?>&f=edit&page_type=<?=$page_type?>” mce_href=”main.php?pmsg=11&sel=<?=$sel?>&obj_id=<?=$rowmenu05->bs_id?>&menu_menu=<?=$menu_menu?>&f=edit&page_type=<?=$page_type?>”><img src=”../images/btn_edit.jpg” mce_src=”../images/btn_edit.jpg” width=”50″ height=”19″ border=”0″ align=”absmiddle”></a></td>
    </tr>
    <? $j++; }?>
    <tr bgcolor=”#FFFFFF”>
      <td height=”34″ colspan=”5″>
      <input type=”hidden” name=”m_t” value=”<?=$tid?>”>
   <input type=”hidden” name=”menu_menu” value=”<?=$menu_menu?>”>
   <input type=”hidden” name=”sel_1″ value=”<?=$sel?>”>
   <input type=”hidden” name=”menu_news_id” value=”<?=$menu_menu?>”>
   <a href=”main.php?pmsg=11&sel=<?=$sel?>&menu_menu=<?=$menu_menu?>&f=add&page_type=<?=$page_type?>&m_t=<?=$tid?>” mce_href=”main.php?pmsg=11&sel=<?=$sel?>&menu_menu=<?=$menu_menu?>&f=add&page_type=<?=$page_type?>&m_t=<?=$tid?>”><img src=”../images/btn_add.jpg” mce_src=”../images/btn_add.jpg” width=”60″ height=”19″ border=”0″ align=”absmiddle” /></a>
   <input name=”deactive” type=”image” src=”../images/btn_deactive.jpg” mce_src=”../images/btn_deactive.jpg” width=”60″ height=”19″ border=”0″ onClick=”javacsript: window.document.news_forum.action = ‘main.php?pmsg=0&page_type=<?=$page_type?>&bs_deactive_01=true&sel=<?=$sel?>’ “>
        <input name=”imageField” type=”image” src=”../images/btn_active.jpg” mce_src=”../images/btn_active.jpg” width=”50″ height=”19″ border=”0″  onClick=”javacsript: window.document.frm_users.action = ‘main.php?esel=18&f=active’ “></td>
      <td><input name=”imageField3″ type=”image” src=”../images/btn_del.jpg” mce_src=”../images/btn_del.jpg” width=”50″ height=”19″ border=”0″ onClick=”javacsript:   if( confirm(‘Та эдгээр хэрэглэгчдийг устгахдаа итгэлтэй байна уу ?’) ) {window.document.frm_users.submit(1);  window.document.frm_users.action = ‘main.php?esel=18&f=dels’ }  else  {window.document.frm_users.submit(1);   } “>      </td>
      <td> </td>
    </tr>
  </form>
</table>
<? }
if($menu_menu !=0 and  $page_type == 6){ ?>
<table width=”100%” border=”0″ cellspacing=”2″ cellpadding=”5″>
  <form method=”post” name=”zar_forum” action=”#” enctype=”multipart/form-data”>
  <tr bgcolor=”#666666″>
      <td colspan=”7″ bgcolor=”#CCCCCC” style=”border:1px #fff solid”><font color=”#000″><strong>
   <? echo $rowmenu_name->mnname.” – д багтах зарууд”;?></strong></font></td>
    </tr>
    <tr bgcolor=”#ededed”>
      <td>№</td>
      <td> </td>
      <td><span class=”style1″>Зарын бүртгэлийн дугаар</span></td>
      <td>Зарлуулагч</td>
      <td><span class=”style1″>Эхлэх огноо</span></td>
      <td><span class=”style1″>Хүчинтэй огноо</span></td>
      <td><span class=”style1″>Засварлах</span></td>
    </tr>
 <tr bgcolor=”#FFFFFF”>
      <td> </td>
      <td colspan=”6″><input name=”all_check” type=”checkbox” 
   onclick=”<?
   $news_menu_query1=mysql_query(“SELECT zar_id FROM $tbl_zar_menu WHERE “.$where05.” GROUP BY zar_id ORDER BY  zar_id DESC “);
  while($rowview051 =mysql_fetch_object($news_menu_query1)){ 
  $zar_id1 = $rowview051->zar_id;
    ?>form.zar_forum_<?=$zar_id1;?>.checked=true
   <?  }
   ?>
   form.all_no_check.checked=false
   “/>
бүгдийг нь сонгох
       
        |
  <input name=”all_no_check” type=”checkbox” 
   onclick=”<?
  $news_menu_query2=mysql_query(“SELECT zar_id FROM $tbl_zar_menu WHERE “.$where05.” GROUP BY zar_id ORDER BY zar_id DESC “);
  while($rowview052 =mysql_fetch_object($news_menu_query2)){ 
  $zar_id2 = $rowview052->zar_id;
    ?>form.zar_forum_<?=$zar_id2;?>.checked=false
   <?  }?>
   form.all_check.checked=false
   “/>
бүгдийг нь vл сонгох </td>
    </tr>
    <?
 
  $j=1;
  $news_menu_query=mysql_query(“SELECT zar_id FROM $tbl_zar_menu WHERE “.$where05.” GROUP BY zar_id ORDER BY  zar_id DESC “);
  while($rowview05 =mysql_fetch_object($news_menu_query)){ 
  $zar_id = $rowview05->zar_id;
 $remenu05=mysql_query(“SELECT * FROM $tbl_zar WHERE zar_id = $zar_id ORDER By zar_id DESC”);
 $rowmenu05=mysql_fetch_object($remenu05);
  ?>
    <tr bgcolor=”#FFFFFF”>
      <td width=”2%”><?=$j?></td>
      <td width=”3%”><input type=”checkbox” name=”zar_forum_<?=$rowmenu05->zar_id;?>” /></td>
      <td width=”33%”><?=$rowmenu05->zar_serial?></td>
      <td width=”16%”><?=$rowmenu05->zar_ch?></td>
      <td width=”16%”><?=$rowmenu05->zar_fdate?></td>
      <td width=”15%”>
        <?=$rowmenu05->zar_ldate?>      </td>
      <td width=”15%”><a href=”main.php?pmsg=10&sel=<?=$sel?>&obj_id=<?=$rowmenu05->zar_id?>&menu_menu=<?=$menu_menu?>&f=edit&page_type=<?=$page_type?>” mce_href=”main.php?pmsg=10&sel=<?=$sel?>&obj_id=<?=$rowmenu05->zar_id?>&menu_menu=<?=$menu_menu?>&f=edit&page_type=<?=$page_type?>”><img src=”../images/btn_edit.jpg” mce_src=”../images/btn_edit.jpg” width=”50″ height=”19″ border=”0″ align=”absmiddle”></a></td>
    </tr>
    <? $j++; }?>
    <tr bgcolor=”#FFFFFF”>
      <td height=”34″ colspan=”5″>
      <input type=”hidden” name=”m_t” value=”<?=$tid?>”>
   <input type=”hidden” name=”menu_menu” value=”<?=$menu_menu?>”>
   <input type=”hidden” name=”sel_1″ value=”<?=$sel?>”>
   <input type=”hidden” name=”menu_news_id” value=”<?=$menu_menu?>”>
   <a href=”main.php?pmsg=10&sel=<?=$sel?>&menu_menu=<?=$menu_menu?>&f=add&page_type=<?=$page_type?>&m_t=<?=$tid?>” mce_href=”main.php?pmsg=10&sel=<?=$sel?>&menu_menu=<?=$menu_menu?>&f=add&page_type=<?=$page_type?>&m_t=<?=$tid?>”><img src=”../images/btn_add.jpg” mce_src=”../images/btn_add.jpg” width=”60″ height=”19″ border=”0″ align=”absmiddle” /></a>
   <input name=”deactive” type=”image” src=”../images/btn_deactive.jpg” mce_src=”../images/btn_deactive.jpg” width=”60″ height=”19″ border=”0″ onClick=”javacsript: window.document.news_forum.action = ‘main.php?pmsg=0&page_type=<?=$page_type?>&pro_deactive_01=true&sel=<?=$sel?>’ “>
        <input name=”imageField” type=”image” src=”../images/btn_active.jpg” mce_src=”../images/btn_active.jpg” width=”50″ height=”19″ border=”0″  onClick=”javacsript: window.document.frm_users.action = ‘main.php?esel=18&f=active’ “></td>
      <td><input name=”imageField3″ type=”image” src=”../images/btn_del.jpg” mce_src=”../images/btn_del.jpg” width=”50″ height=”19″ border=”0″ onClick=”javacsript:   if( confirm(‘Та эдгээр хэрэглэгчдийг устгахдаа итгэлтэй байна уу ?’) ) {window.document.frm_users.submit(1);  window.document.frm_users.action = ‘main.php?esel=18&f=dels’ }  else  {window.document.frm_users.submit(1);   } “>      </td>
      <td> </td>
    </tr>
  </form>
</table>
<? } if($menu_menu !=0 and  $page_type == 5){ ?>
<table width=”100%” border=”0″ cellspacing=”2″ cellpadding=”5″>
  <form method=”post” name=”pro02_forum” action=”#” enctype=”multipart/form-data”>
  <tr bgcolor=”#666666″>
      <td colspan=”6″ bgcolor=”#CCCCCC” style=”border:1px #fff solid”><font color=”#000″><strong><? echo $rowmenu_name->mnname.” – д багтах бүтээгдэхүүнүүд”;?></strong></font></td>
    </tr>
    <tr bgcolor=”#ededed”>
      <td>№</td>
      <td> </td>
      <td><span class=”style1″>Бүтээгдэхүүний нэр</span></td>
      <td>Төрөл</td>
      <td><span class=”style1″>Оруулсан огноо</span></td>
      <td><span class=”style1″>Засварлах</span></td>
    </tr>
 <tr bgcolor=”#FFFFFF”>
      <td> </td>
      <td colspan=”5″><input name=”all_check” type=”checkbox” 
   onclick=”<?
   $pro02_menu_query1=mysql_query(“SELECT rs_id FROM $tbl_rs_menu WHERE “.$where05.” GROUP BY rs_id ORDER BY  rs_id DESC “);
  while($rowview051 =mysql_fetch_object($pro02_menu_query1)){ 
  $rs_id1 = $rowview051->rs_id;
    ?>form.pro_forum_<?=$rs_id1;?>.checked=true
   <?  }
   ?>
   form.all_no_check.checked=false
   “/>
бүгдийг нь сонгох
       
        |
  <input name=”all_no_check” type=”checkbox” 
   onclick=”<?
   $pro02_menu_query2=mysql_query(“SELECT rs_id FROM $tbl_rs_menu WHERE “.$where05.” GROUP BY rs_id ORDER BY  rs_id DESC “);
  while($rowview052 =mysql_fetch_object($pro02_menu_query2)){ 
  $rs_id2 = $rowview052->rs_id;
    ?>form.pro_forum_<?=$rs_id2;?>.checked=false
   <?  }?>
   form.all_check.checked=false
   “/>
бүгдийг нь vл сонгох </td>
    </tr>
    <?
 
  $j=1;
  $pro02_menu_query=mysql_query(“SELECT rs_id FROM $tbl_rs_menu WHERE “.$where05.” GROUP BY rs_id ORDER BY  rs_id DESC “);
  while($rowview05 =mysql_fetch_object($pro02_menu_query)){ 
  $rs_id = $rowview05->rs_id;
 $remenu05=mysql_query(“SELECT * FROM $tbl_realstock where rs_id = $rs_id”);
 $rowmenu05=mysql_fetch_object($remenu05);
  ?>
    <tr bgcolor=”#FFFFFF”>
      <td width=”2%”><?=$j?></td>
      <td width=”3%”><input type=”checkbox” name=”pro_forum_<?=$rowmenu05->prod_id;?>” /></td>
      <td width=”33%”>
        <?=$rowmenu05->prod_name?>      </td>
      <td width=”32%”> </td>
      <td width=”15%”>
        <?=$rowmenu05->prod_date?>      </td>
      <td width=”15%”><a href=”main.php?pmsg=6&sel=<?=$sel?>&obj_id=<?=$rs_id?>&menu_menu=<?=$menu_menu?>&f=edit&page_type=<?=$page_type?>” mce_href=”main.php?pmsg=6&sel=<?=$sel?>&obj_id=<?=$rs_id?>&menu_menu=<?=$menu_menu?>&f=edit&page_type=<?=$page_type?>”><img src=”../images/btn_edit.jpg” mce_src=”../images/btn_edit.jpg” width=”50″ height=”19″ border=”0″ align=”absmiddle”></a></td>
    </tr>
    <? $j++; }?>
    <tr bgcolor=”#FFFFFF”>
      <td height=”34″ colspan=”4″>
      <input type=”hidden” name=”m_t” value=”<?=$tid?>”>
   <input type=”hidden” name=”menu_menu” value=”<?=$menu_menu?>”>
   <input type=”hidden” name=”sel_1″ value=”<?=$sel?>”>
   <input type=”hidden” name=”menu_pro02_id” value=”<?=$menu_menu?>”>
   <a href=”main.php?pmsg=6&sel=<?=$sel?>&menu_menu=<?=$menu_menu?>&f=add&page_type=<?=$page_type?>&m_t=<?=$tid?>” mce_href=”main.php?pmsg=6&sel=<?=$sel?>&menu_menu=<?=$menu_menu?>&f=add&page_type=<?=$page_type?>&m_t=<?=$tid?>”><img src=”../images/btn_add.jpg” mce_src=”../images/btn_add.jpg” width=”60″ height=”19″ border=”0″ align=”absmiddle” /></a>
   <input name=”deactive” type=”image” src=”../images/btn_deactive.jpg” mce_src=”../images/btn_deactive.jpg” width=”60″ height=”19″ border=”0″ onClick=”javacsript: window.document.pro02_forum.action = ‘main.php?pmsg=0&page_type=<?=$page_type?>&pro_deactive_01=true&sel=<?=$sel?>’ “>
        <input name=”imageField” type=”image” src=”../images/btn_active.jpg” mce_src=”../images/btn_active.jpg” width=”50″ height=”19″ border=”0″  onClick=”javacsript: window.document.frm_users.action = ‘main.php?esel=18&f=active’ “></td>
      <td><input name=”imageField3″ type=”image” src=”../images/btn_del.jpg” mce_src=”../images/btn_del.jpg” width=”50″ height=”19″ border=”0″ onClick=”javacsript:   if( confirm(‘Та эдгээр хэрэглэгчдийг устгахдаа итгэлтэй байна уу ?’) ) {window.document.frm_users.submit(1);  window.document.frm_users.action = ‘main.php?esel=18&f=dels’ }  else  {window.document.frm_users.submit(1);   } “>      </td>
      <td> </td>
    </tr>
  </form>
</table>
<? } if($menu_menu !=0 and  $page_type == 3){ ?>
<table width=”100%” border=”0″ cellspacing=”2″ cellpadding=”5″>
  <form method=”post” name=”news_forum” action=”#” enctype=”multipart/form-data”>
  <tr bgcolor=”#666666″>
      <td colspan=”6″ bgcolor=”#CCCCCC” style=”border:1px #fff solid”><font color=”#000″><strong><? echo $rowmenu_name->mnname.” – д багтах бүтээгдэхүүнүүд”;?></strong></font></td>
    </tr>
    <tr bgcolor=”#ededed”>
      <td>№</td>
      <td> </td>
      <td><span class=”style1″>Бүтээгдэхүүний нэр</span></td>
      <td>Төрөл</td>
      <td><span class=”style1″>Оруулсан огноо</span></td>
      <td><span class=”style1″>Засварлах</span></td>
    </tr>
 <tr bgcolor=”#FFFFFF”>
      <td> </td>
      <td colspan=”5″><input name=”all_check” type=”checkbox” 
   onclick=”<?
   $news_menu_query1=mysql_query(“SELECT pro_id FROM $tbl_pro_menu WHERE “.$where05.” GROUP BY pro_id ORDER BY  pro_id DESC “);
  while($rowview051 =mysql_fetch_object($news_menu_query1)){ 
  $pro_id1 = $rowview051->pro_id;
    ?>form.pro_forum_<?=$pro_id1;?>.checked=true
   <?  }
   ?>
   form.all_no_check.checked=false
   “/>
бүгдийг нь сонгох
       
        |
  <input name=”all_no_check” type=”checkbox” 
   onclick=”<?
   $news_menu_query2=mysql_query(“SELECT pro_id FROM $tbl_pro_menu WHERE “.$where05.” GROUP BY pro_id ORDER BY  pro_id DESC “);
  while($rowview052 =mysql_fetch_object($news_menu_query2)){ 
  $pro_id2 = $rowview052->pro_id;
    ?>form.pro_forum_<?=$pro_id2;?>.checked=false
   <?  }?>
   form.all_check.checked=false
   “/>
бүгдийг нь vл сонгох </td>
    </tr>
    <?
 
  $j=1;
  $news_menu_query=mysql_query(“SELECT pro_id FROM $tbl_pro_menu WHERE “.$where05.” GROUP BY pro_id ORDER BY  pro_id DESC “);
  while($rowview05 =mysql_fetch_object($news_menu_query)){ 
  $pro_id = $rowview05->pro_id;
 $remenu05=mysql_query(“SELECT prod_id,prod_name,prod_stype ,prod_date FROM $tbl_product WHERE prod_id = $pro_id ORDER By prod_date DESC”);
 $rowmenu05=mysql_fetch_object($remenu05);
  ?>
    <tr bgcolor=”#FFFFFF”>
      <td width=”2%”><?=$j?></td>
      <td width=”3%”><input type=”checkbox” name=”pro_forum_<?=$rowmenu05->prod_id;?>” /></td>
      <td width=”33%”>
        <?=$rowmenu05->prod_name?>      </td>
      <td width=”32%”> </td>
      <td width=”15%”>
        <?=$rowmenu05->prod_date?>      </td>
      <td width=”15%”><a href=”main.php?pmsg=5&sel=<?=$sel?>&obj_id=<?=$rowmenu05->prod_id?>&menu_menu=<?=$menu_menu?>&f=edit&page_type=<?=$page_type?>” mce_href=”main.php?pmsg=5&sel=<?=$sel?>&obj_id=<?=$rowmenu05->prod_id?>&menu_menu=<?=$menu_menu?>&f=edit&page_type=<?=$page_type?>”><img src=”../images/btn_edit.jpg” mce_src=”../images/btn_edit.jpg” width=”50″ height=”19″ border=”0″ align=”absmiddle”></a></td>
    </tr>
    <? $j++; }?>
    <tr bgcolor=”#FFFFFF”>
      <td height=”34″ colspan=”4″>
      <input type=”hidden” name=”m_t” value=”<?=$tid?>”>
   <input type=”hidden” name=”menu_menu” value=”<?=$menu_menu?>”>
   <input type=”hidden” name=”sel_1″ value=”<?=$sel?>”>
   <input type=”hidden” name=”menu_news_id” value=”<?=$menu_menu?>”>
   <a href=”main.php?pmsg=5&sel=<?=$sel?>&menu_menu=<?=$menu_menu?>&f=add&page_type=<?=$page_type?>&m_t=<?=$tid?>” mce_href=”main.php?pmsg=5&sel=<?=$sel?>&menu_menu=<?=$menu_menu?>&f=add&page_type=<?=$page_type?>&m_t=<?=$tid?>”><img src=”../images/btn_add.jpg” mce_src=”../images/btn_add.jpg” width=”60″ height=”19″ border=”0″ align=”absmiddle” /></a>
   <input name=”deactive” type=”image” src=”../images/btn_deactive.jpg” mce_src=”../images/btn_deactive.jpg” width=”60″ height=”19″ border=”0″ onClick=”javacsript: window.document.news_forum.action = ‘main.php?pmsg=0&page_type=<?=$page_type?>&pro_deactive_01=true&sel=<?=$sel?>’ “>
        <input name=”imageField” type=”image” src=”../images/btn_active.jpg” mce_src=”../images/btn_active.jpg” width=”50″ height=”19″ border=”0″  onClick=”javacsript: window.document.frm_users.action = ‘main.php?esel=18&f=active’ “></td>
      <td><input name=”imageField3″ type=”image” src=”../images/btn_del.jpg” mce_src=”../images/btn_del.jpg” width=”50″ height=”19″ border=”0″ onClick=”javacsript:   if( confirm(‘Та эдгээр хэрэглэгчдийг устгахдаа итгэлтэй байна уу ?’) ) {window.document.frm_users.submit(1);  window.document.frm_users.action = ‘main.php?esel=18&f=dels’ }  else  {window.document.frm_users.submit(1);   } “>      </td>
      <td> </td>
    </tr>
  </form>
</table>
<? } if(($sel==1 or $sel==18 or $sel==17) and $menu_menu !=0 and ( $page_type == 0)){ ?>
<table width=”100%” border=”0″ cellspacing=”2″ cellpadding=”5″>
    <tr bgcolor=”#666666″>
      <td width=”100%” bgcolor=”#666666″ style=”border:1px #fff solid” class=”title_white”><? echo $rowmenu_name->mnname.” дээр гарах мэдээлэлүүд”;?></td>
    </tr>
</table>
<div style=”padding-left:3px;”>
<a href=”#” mce_href=”#” id=”b1″ onclick=”javascript:profile(‘1’);” style=”width:25%” class=”edit_tab_select”>Мэдээ, мэдээлэл</a>
<a href=”#” mce_href=”#” id=”b2″ onclick=”javascript:profile(‘2’);” style=”width:25%” class=”edit_tab”>Барилгын материал</a>
<a href=”#” mce_href=”#” id=”b3″ onclick=”javascript:profile(‘3’);” style=”width:25%” class=”edit_tab”>Үл хөдлөх хөрөнгө</a>
<a href=”#” mce_href=”#” id=”b4″ onclick=”javascript:profile(‘4’);” style=”width:24%” class=”edit_tab”>Зар зар зар</a></div>
<div id=”home_1″>
<table width=”100%” border=”0″ cellspacing=”2″ cellpadding=”5″>
  <form action=”#” method=”post” enctype=”multipart/form-data” name=”news_forum”>
    <tr bgcolor=”#666666″>
      <td colspan=”5″ bgcolor=”#CCCCCC” style=”border:1px #fff solid”><strong>Мэдээ, мэдээлэл </strong></td>
    </tr>
    <tr bgcolor=”#ededed”>
      <td>№</td>
      <td> </td>
      <td bgcolor=”#ededed”><span class=”style1″>Мэдээний нэр</span></td>
      <td><span class=”style1″>Оруулсан огноо</span></td>
      <td><span class=”style1″>Засварлах</span></td>
    </tr>
    <tr bgcolor=”#FFFFFF”>
      <td> </td>
      <td colspan=”4″>
   <input name=”all_check” type=”checkbox” 
   onclick=”<?
   $news_menu_query1=mysql_query(“SELECT news_id FROM $tbl_news_menu WHERE “.$where05.” GROUP BY news_id ORDER BY  news_id DESC “);
  while($rowview051 =mysql_fetch_object($news_menu_query1)){ 
  $news_id1 = $rowview051->news_id;
    ?>form.news_forum_<?=$news_id1;?>.checked=true
   <?  }
   ?>
   form.all_no_check.checked=false
   “/>
        бүгдийг нь сонгох
       
        |
        <input name=”all_no_check” type=”checkbox” 
   onclick=”<?
   $news_menu_query2=mysql_query(“SELECT news_id FROM $tbl_news_menu WHERE “.$where05.” GROUP BY news_id ORDER BY  news_id DESC “);
  while($rowview052 =mysql_fetch_object($news_menu_query2)){ 
  $news_id2 = $rowview052->news_id;
    ?>form.news_forum_<?=$news_id2;?>.checked=false
   <?  }?>
   form.all_check.checked=false
   “/>
        бүгдийг нь vл сонгох </td>
    </tr>
    <?
 
  $j=1;
  $news_menu_query=mysql_query(“SELECT news_id FROM $tbl_news_menu WHERE “.$where05.” GROUP BY news_id ORDER BY  news_id DESC “);
  while($rowview05 =mysql_fetch_object($news_menu_query)){ 
  $news_id = $rowview05->news_id;
 $remenu05=mysql_query(“SELECT id,mntitle,edate FROM $tbl_prefnews WHERE id = $news_id ORDER By edate DESC”);
 $rowmenu05=mysql_fetch_object($remenu05);
  ?>
    <tr bgcolor=”#FFFFFF”>
      <td width=”2%”><?=$j?></td>
      <td width=”3%”><input type=”checkbox” name=”news_forum_<?=$rowmenu05->id;?>” /></td>
      <td width=”65%”><?=$rowmenu05->mntitle?>
      </td>
      <td width=”15%”><?=$rowmenu05->edate?>
      </td>
      <td width=”15%”><a href=”main.php?pmsg=1&sel=3&sel_2=<?=$sel?>&id=<?=$rowmenu05->id?>&menu_menu=<?=$menu_menu?>&page_type=<?=$page_type?>” mce_href=”main.php?pmsg=1&sel=3&sel_2=<?=$sel?>&id=<?=$rowmenu05->id?>&menu_menu=<?=$menu_menu?>&page_type=<?=$page_type?>”><img src=”../images/btn_edit.jpg” mce_src=”../images/btn_edit.jpg” width=”50″ height=”19″ border=”0″ align=”absmiddle” /></a></td>
    </tr>
    <? $j++; }?>
    <tr bgcolor=”#FFFFFF”>
      <td height=”34″ colspan=”3″><input type=”hidden” name=”m_t” value=”<?=$tid?>” />
          <input type=”hidden” name=”menu_menu” value=”<?=$menu_menu?>” />
          <input type=”hidden” name=”sel_1″ value=”<?=$sel?>” />
          <input type=”hidden” name=”page_type” value=”<?=$page_type?>” />
          <input type=”hidden” name=”menu_news_id” value=”<?=$menu_menu?>” />
          <input name=”add_ss”  type=”image” src=”../images/btn_add.jpg” mce_src=”../images/btn_add.jpg” width=”60″ height=”19″ border=”0″ onclick=”javacsript: window.document.news_forum.action = ‘main.php?pmsg=1&sel=3’ ” />
          <input name=”deactive” type=”image” src=”../images/btn_deactive.jpg” mce_src=”../images/btn_deactive.jpg” width=”60″ height=”19″ border=”0″ onclick=”javacsript: window.document.news_forum.action = ‘main.php?pmsg=0&page_type=<?=$page_type?>&deactive=true&sel=<?=$sel?>’ ” />
          <input name=”imageField” type=”image” src=”../images/btn_active.jpg” mce_src=”../images/btn_active.jpg” width=”50″ height=”19″ border=”0″  onclick=”javacsript: window.document.frm_users.action = ‘main.php?esel=18&f=active’ ” /></td>
      <td><input name=”imageField3″ type=”image” src=”../images/btn_del.jpg” mce_src=”../images/btn_del.jpg” width=”50″ height=”19″ border=”0″ onclick=”javacsript:   if( confirm(‘Та эдгээр хэрэглэгчдийг устгахдаа итгэлтэй байна уу ?’) ) {window.document.frm_users.submit(1);  window.document.frm_users.action = ‘main.php?esel=18&f=dels’ }  else  {window.document.frm_users.submit(1);   } ” />
      </td>
      <td> </td>
    </tr>
  </form>
</table>
</div>
<div id=”home_2″ style=”display:none”>
<table width=”100%” border=”0″ cellspacing=”2″ cellpadding=”5″>
  <form action=”#” method=”post” enctype=”multipart/form-data” name=”pro_forum” id=”pro_forum”>
    <tr bgcolor=”#666666″>
      <td colspan=”6″ bgcolor=”#CCCCCC” style=”border:1px #fff solid”><font color=”#000″><strong><? echo $rowmenu_name->mnname.” – д багтах бүтээгдэхүүнүүд”;?></strong></font></td>
    </tr>
    <tr bgcolor=”#ededed”>
      <td>№</td>
      <td> </td>
      <td><span class=”style1″>Бүтээгдэхүүний нэр</span></td>
      <td>Төрөл</td>
      <td><span class=”style1″>Оруулсан огноо</span></td>
      <td><span class=”style1″>Засварлах</span></td>
    </tr>
    <tr bgcolor=”#FFFFFF”>
      <td> </td>
      <td colspan=”5″><input name=”all_check” type=”checkbox” 
   onclick=”<?
   $news_menu_query1=mysql_query(“SELECT pro_id FROM $tbl_pro_menu WHERE “.$where05.” GROUP BY pro_id ORDER BY  pro_id DESC “);
  while($rowview051 =mysql_fetch_object($news_menu_query1)){ 
  $pro_id1 = $rowview051->pro_id;
    ?>form.pro_forum_<?=$pro_id1;?>.checked=true
   <?  }
   ?>
   form.all_no_check.checked=false
   “/>
        бүгдийг нь сонгох
       
        |
        <input name=”all_no_check” type=”checkbox” 
   onclick=”<?
   $news_menu_query2=mysql_query(“SELECT pro_id FROM $tbl_pro_menu WHERE “.$where05.” GROUP BY pro_id ORDER BY  pro_id DESC “);
  while($rowview052 =mysql_fetch_object($news_menu_query2)){ 
  $pro_id2 = $rowview052->pro_id;
    ?>form.pro_forum_<?=$pro_id2;?>.checked=false
   <?  }?>
   form.all_check.checked=false
   “/>
        бүгдийг нь vл сонгох </td>
    </tr>
    <?
 
  $j=1;
  $news_menu_query=mysql_query(“SELECT pro_id FROM $tbl_pro_menu WHERE “.$where05.” GROUP BY pro_id ORDER BY  pro_id DESC “);
  while($rowview05 =mysql_fetch_object($news_menu_query)){ 
  $pro_id = $rowview05->pro_id;
 $remenu05=mysql_query(“SELECT prod_id,prod_name,prod_stype ,prod_date FROM $tbl_product WHERE prod_id = $pro_id ORDER By prod_date DESC”);
 $rowmenu05=mysql_fetch_object($remenu05);
  ?>
    <tr bgcolor=”#FFFFFF”>
      <td width=”2%”><?=$j?></td>
      <td width=”3%”><input type=”checkbox” name=”pro_forum_<?=$rowmenu05->prod_id;?>” /></td>
      <td width=”33%”><?=$rowmenu05->prod_name?>
      </td>
      <td width=”32%”> </td>
      <td width=”15%”><?=$rowmenu05->prod_date?>
      </td>
      <td width=”15%”><a href=”main.php?pmsg=5&sel=<?=$sel?>&obj_id=<?=$rowmenu05->prod_id?>&menu_menu=<?=$menu_menu?>&f=edit&page_type=<?=$page_type?>” mce_href=”main.php?pmsg=5&sel=<?=$sel?>&obj_id=<?=$rowmenu05->prod_id?>&menu_menu=<?=$menu_menu?>&f=edit&page_type=<?=$page_type?>”><img src=”../images/btn_edit.jpg” mce_src=”../images/btn_edit.jpg” width=”50″ height=”19″ border=”0″ align=”absmiddle” /></a></td>
    </tr>
    <? $j++; }?>
    <tr bgcolor=”#FFFFFF”>
      <td height=”34″ colspan=”4″><input type=”hidden” name=”m_t” value=”<?=$tid?>” />
          <input type=”hidden” name=”menu_menu” value=”<?=$menu_menu?>” />
          <input type=”hidden” name=”sel_1″ value=”<?=$sel?>” />
          <input type=”hidden” name=”menu_news_id” value=”<?=$menu_menu?>” />
          <a href=”main.php?pmsg=5&sel=<?=$sel?>&menu_menu=<?=$menu_menu?>&f=add&page_type=<?=$page_type?>&m_t=<?=$tid?>” mce_href=”main.php?pmsg=5&sel=<?=$sel?>&menu_menu=<?=$menu_menu?>&f=add&page_type=<?=$page_type?>&m_t=<?=$tid?>”><img src=”../images/btn_add.jpg” mce_src=”../images/btn_add.jpg” width=”60″ height=”19″ border=”0″ align=”absmiddle” /></a>
          <input name=”deactive” type=”image” src=”../images/btn_deactive.jpg” mce_src=”../images/btn_deactive.jpg” width=”60″ height=”19″ border=”0″ onclick=”javacsript: window.document.pro_forum.action = ‘main.php?pmsg=0&page_type=<?=$page_type?>&pro_deactive_01=true&sel=<?=$sel?>’ ” />
          <input name=”imageField2″ type=”image” src=”../images/btn_active.jpg” mce_src=”../images/btn_active.jpg” width=”50″ height=”19″ border=”0″  onclick=”javacsript: window.document.frm_users.action = ‘main.php?esel=18&f=active’ ” /></td>
      <td><input name=”imageField32″ type=”image” src=”../images/btn_del.jpg” mce_src=”../images/btn_del.jpg” width=”50″ height=”19″ border=”0″ onclick=”javacsript:   if( confirm(‘Та эдгээр хэрэглэгчдийг устгахдаа итгэлтэй байна уу ?’) ) {window.document.frm_users.submit(1);  window.document.frm_users.action = ‘main.php?esel=18&f=dels’ }  else  {window.document.frm_users.submit(1);   } ” />
      </td>
      <td> </td>
    </tr>
  </form>
</table>
</div>
<div id=”home_3″ style=”display:none”>
<? $where05a = “menu_id = “.$menu_menu.” and menu_type = ‘home01′”;?>
<table width=”100%” border=”0″ cellspacing=”2″ cellpadding=”5″>
  <form method=”post” name=”news01_forum” action=”#” enctype=”multipart/form-data”>
  <tr bgcolor=”#666666″>
      <td colspan=”5″ bgcolor=”#CCCCCC” style=”border:1px #fff solid”><font color=”#000″><strong>
   Үл хөдлөх хөрөнгө</strong></font></td>
    </tr>
    <tr bgcolor=”#ededed”>
      <td>№</td>
      <td> </td>
      <td bgcolor=”#ededed”><span class=”style1″>Мэдээллийн гарчиг </span></td>
      <td><span class=”style1″>Оруулсан огноо</span></td>
      <td><span class=”style1″>Засварлах</span></td>
    </tr>
 <tr bgcolor=”#FFFFFF”>
      <td> </td>
      <td colspan=”4″><input name=”all_check” type=”checkbox” 
   onclick=”<?
   $news_menu_query1=mysql_query(“SELECT news_id FROM $tbl_news_menu WHERE “.$where05a.” GROUP BY news_id ORDER BY  news_id DESC “);
  while($rowview051 =mysql_fetch_object($news_menu_query1)){ 
  $news_id1 = $rowview051->news_id;
    ?>form.news01_forum_<?=$news_id1;?>.checked=true
   <?  }
   ?>
   form.all_no_check.checked=false
   “/>
бүгдийг нь сонгох
       
        |
  <input name=”all_no_check” type=”checkbox” 
   onclick=”<?
   $news_menu_query2=mysql_query(“SELECT news_id FROM $tbl_news_menu WHERE “.$where05a.” GROUP BY news_id ORDER BY  news_id DESC “);
  while($rowview052 =mysql_fetch_object($news_menu_query2)){ 
  $news_id2 = $rowview052->news_id;
    ?>form.news01_forum_<?=$news_id2;?>.checked=false
   <?  }?>
   form.all_check.checked=false
   “/>
бүгдийг нь vл сонгох </td>
    </tr>
    <?
 
  $j=1;
  $news_menu_query=mysql_query(“SELECT news_id FROM $tbl_news_menu WHERE “.$where05a.” GROUP BY news_id ORDER BY  news_id DESC “);
  while($rowview05 =mysql_fetch_object($news_menu_query)){ 
  $news_id = $rowview05->news_id;
 $remenu05=mysql_query(“SELECT id,mntitle,edate FROM $tbl_prefnews WHERE id = $news_id ORDER By edate DESC”);
 $rowmenu05=mysql_fetch_object($remenu05);
  ?>
    <tr bgcolor=”#FFFFFF”>
      <td width=”2%”><?=$j?></td>
      <td width=”3%”><input type=”checkbox” name=”news_forum_<?=$rowmenu05->id;?>” /></td>
      <td width=”65%”>
        <?=$rowmenu05->mntitle?>      </td>
      <td width=”15%”>
        <?=$rowmenu05->edate?>      </td>
      <td width=”15%”><a href=”main.php?pmsg=1&sel=3&sel_2=<?=$sel?>&id=<?=$rowmenu05->id?>&menu_menu=<?=$menu_menu?>&page_type=<?=$page_type?>” mce_href=”main.php?pmsg=1&sel=3&sel_2=<?=$sel?>&id=<?=$rowmenu05->id?>&menu_menu=<?=$menu_menu?>&page_type=<?=$page_type?>”><img src=”../images/btn_edit.jpg” mce_src=”../images/btn_edit.jpg” width=”50″ height=”19″ border=”0″ align=”absmiddle”></a></td>
    </tr>
    <? $j++; }?>
    <tr bgcolor=”#FFFFFF”>
      <td height=”34″ colspan=”3″>
      <input type=”hidden” name=”m_t” value=”<?=$tid?>”>
   <input type=”hidden” name=”m_ta” value=”home01″>
   <input type=”hidden” name=”menu_menu” value=”<?=$menu_menu?>”>
   <input type=”hidden” name=”sel_1″ value=”<?=$sel?>”>
   <input type=”hidden” name=”page_type” value=”<?=$page_type?>”>
   <input type=”hidden” name=”menu_news_id” value=”<?=$menu_menu?>”>
   <input name=”add_ss”  type=”image” src=”../images/btn_add.jpg” mce_src=”../images/btn_add.jpg” width=”60″ height=”19″ border=”0″ onClick=”javacsript: window.document.news01_forum.action = ‘main.php?pmsg=1&sel=3’ “>
        <input name=”deactive” type=”image” src=”../images/btn_deactive.jpg” mce_src=”../images/btn_deactive.jpg” width=”60″ height=”19″ border=”0″ onClick=”javacsript: window.document.news01_forum.action = ‘main.php?pmsg=0&page_type=<?=$page_type?>&deactive=true&sel=<?=$sel?>’ “>
        <input name=”imageField” type=”image” src=”../images/btn_active.jpg” mce_src=”../images/btn_active.jpg” width=”50″ height=”19″ border=”0″  onClick=”javacsript: window.document.frm_users.action = ‘main.php?esel=18&f=active’ “></td>
      <td><input name=”imageField3″ type=”image” src=”../images/btn_del.jpg” mce_src=”../images/btn_del.jpg” width=”50″ height=”19″ border=”0″ onClick=”javacsript:   if( confirm(‘Та эдгээр хэрэглэгчдийг устгахдаа итгэлтэй байна уу ?’) ) {window.document.frm_users.submit(1);  window.document.frm_users.action = ‘main.php?esel=18&f=dels’ }  else  {window.document.frm_users.submit(1);   } “>      </td>
      <td> </td>
    </tr>
  </form>
</table>
</div>
<? }
if($menu_menu !=0 and $page_type == 4){
 ?>
<table width=”100%” border=”0″ cellspacing=”2″ cellpadding=”5″>
  <form method=”post” name=”bl_forum” action=”#” enctype=”multipart/form-data”>
  <tr bgcolor=”#666666″>
      <td colspan=”7″ bgcolor=”#CCCCCC” style=”border:1px #fff solid”><font color=”#000″><strong>
   <? echo $rowmenu_name->mnname.” – д багтах зарууд”;?></strong></font></td>
    </tr>
    <tr bgcolor=”#ededed”>
      <td>№</td>
      <td> </td>
      <td>Гүйцэтгэгч</td>
      <td>Талбай</td>
      <td><span class=”style1″>Оруулсан огноо</span></td>
      <td><span class=”style1″>Ашиглалтанд</span></td>
      <td><span class=”style1″>Засварлах</span></td>
    </tr>
 <tr bgcolor=”#FFFFFF”>
      <td> </td>
      <td colspan=”6″><input name=”all_check” type=”checkbox” 
   onclick=”<?
   $news_menu_query1=mysql_query(“SELECT bl_id FROM $tbl_bl_menu WHERE “.$where05.” GROUP BY bl_id ORDER BY  bl_id DESC “);
  while($rowview051 =mysql_fetch_object($news_menu_query1)){ 
  $bl_id1 = $rowview051->bl_id;
    ?>form.bl_forum_<?=$bl_id1;?>.checked=true
   <?  }
   ?>
   form.all_no_check.checked=false
   “/>
бүгдийг нь сонгох
       
        |
  <input name=”all_no_check” type=”checkbox” 
   onclick=”<?
  $news_menu_query2=mysql_query(“SELECT bl_id FROM $tbl_bl_menu WHERE “.$where05.” GROUP BY bl_id ORDER BY bl_id DESC “);
  while($rowview052 =mysql_fetch_object($news_menu_query2)){ 
  $bl_id2 = $rowview052->bl_id;
    ?>form.bl_forum_<?=$bl_id2;?>.checked=false
   <?  }?>
   form.all_check.checked=false
   “/>
бүгдийг нь vл сонгох </td>
    </tr>
    <?
 
  $j=1;
  $news_menu_query=mysql_query(“SELECT bl_id FROM $tbl_bl_menu WHERE “.$where05.” GROUP BY bl_id ORDER BY  bl_id DESC “);
  while($rowview05 =mysql_fetch_object($news_menu_query)){ 
  $bl_id = $rowview05->bl_id;
 $remenu05=mysql_query(“SELECT * FROM $tbl_building WHERE bl_id = $bl_id ORDER By bl_id DESC”);
 $rowmenu05=mysql_fetch_object($remenu05);
  ?>
    <tr bgcolor=”#FFFFFF”>
      <td width=”2%”><?=$j?></td>
      <td width=”3%”><input type=”checkbox” name=”bl_forum_<?=$rowmenu05->bl_id;?>” /></td>
      <td width=”33%”><?=$rowmenu05->bl_ch?></td>
      <td width=”16%”><?=$rowmenu05->bl_size?></td>
      <td width=”16%”><?=$rowmenu05->bl_fdate?></td>
      <td width=”15%”>
        <?=$rowmenu05->bl_ldate?>      </td>
      <td width=”15%”><a href=”main.php?pmsg=12&sel=<?=$sel?>&obj_id=<?=$rowmenu05->bl_id?>&menu_menu=<?=$menu_menu?>&f=edit&page_type=<?=$page_type?>” mce_href=”main.php?pmsg=12&sel=<?=$sel?>&obj_id=<?=$rowmenu05->bl_id?>&menu_menu=<?=$menu_menu?>&f=edit&page_type=<?=$page_type?>”><img src=”../images/btn_edit.jpg” mce_src=”../images/btn_edit.jpg” width=”50″ height=”19″ border=”0″ align=”absmiddle”></a></td>
    </tr>
    <? $j++; }?>
    <tr bgcolor=”#FFFFFF”>
      <td height=”34″ colspan=”5″>
      <input type=”hidden” name=”m_t” value=”<?=$tid?>”>
   <input type=”hidden” name=”menu_menu” value=”<?=$menu_menu?>”>
   <input type=”hidden” name=”sel_1″ value=”<?=$sel?>”>
   <input type=”hidden” name=”menu_news_id” value=”<?=$menu_menu?>”>
   <a href=”main.php?pmsg=12&sel=<?=$sel?>&menu_menu=<?=$menu_menu?>&f=add&page_type=<?=$page_type?>&m_t=<?=$tid?>” mce_href=”main.php?pmsg=12&sel=<?=$sel?>&menu_menu=<?=$menu_menu?>&f=add&page_type=<?=$page_type?>&m_t=<?=$tid?>”>
   <img src=”../images/btn_add.jpg” mce_src=”../images/btn_add.jpg” width=”60″ height=”19″ border=”0″ align=”absmiddle” /></a>
   <input name=”deactive” type=”image” src=”../images/btn_deactive.jpg” mce_src=”../images/btn_deactive.jpg” width=”60″ height=”19″ border=”0″ onClick=”javacsript: window.document.news_forum.action = ‘main.php?pmsg=0&page_type=<?=$page_type?>&pro_deactive_01=true&sel=<?=$sel?>’ “>
        <input name=”imageField” type=”image” src=”../images/btn_active.jpg” mce_src=”../images/btn_active.jpg” width=”50″ height=”19″ border=”0″  onClick=”javacsript: window.document.frm_users.action = ‘main.php?esel=18&f=active’ “></td>
      <td> </td>
      <td> </td>
    </tr>
  </form>
</table>
<? }?>

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: