Просмотр файла src/wml/room.php

Размер файла: 3.27Kb
<?php	
/*
* Harris WapChat
*
* http://www.successkid.com
*
* Harris WapChat is a wap chat application for personal and corporate used.
* Visit {@link http://www.successkid.com} for more info.
* Copyright (C) 2005 Harris Yusuf Arifin
* 
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*
* @author		Harris Yusuf Arifin <[email protected]>
* @copyright	Copyright 2005, Harris Yusuf Arifin
*
* Please support this software by send DONATION to E-GOLD account :
* E-gold Number : 827550
* E-gold Name 	 : earthweb egold
*/


	include("$sysFileDir".FILE_HEAD_TYPE);
	include("$sysFileDir".FILE_HEADER_WML);
	
echo "<wml>\n";
echo "<card title=\"".$txt_room."\">\n";	
	
echo "<p align=\"left\">\n";

if ($sesUsername == $sesUserAdminCob) {
echo $txt_gotomenu.":<br/>";
echo "<a title=\"$txt_select\" href=\"".FILE_CENTER_POINT."?c=".CHOICE_ROOM_CREATE."\">$txt_crtroom</a><br/>\n";    
echo "<a title=\"$txt_select\" href=\"".FILE_CENTER_POINT."?c=".CHOICE_ROOM_DISPROOM."\">$txt_delroom</a><br/>\n";   
echo "<a title=\"$txt_select\" href=\"".FILE_CENTER_POINT."?c=".CHOICE_ADV_CREATE."\">$txt_crtad</a><br/>\n";    
echo "<a title=\"$txt_select\" href=\"".FILE_CENTER_POINT."?c=".CHOICE_ADV_DISP_ROOM."\">$txt_editad</a><br/>\n";   
}

if ($listCount > 0) {
		$tempStar = $sesVarNavigation + 1;
		$tempEnd = $sesVarNavigation + $sesPhoneCtkDisplayed;
		if ($tempEnd > $listCount) {
			$tempEnd = $listCount;
		}
}
		
echo $txt_selectroom.":<br/>";
if (($listCount == 1) || ($listCount == 0)) {
} else {
echo "<b>".$txt_list." (".$tempStar."-".$tempEnd." of ".$listCount.")</b><br/>\n";
}
if ($sesVarNavigation > 0) {
			$tempSesVar = $sesVarNavigation - $sesPhoneCtkDisplayed;
			echo "<anchor title=\"".$txt_prev."\">".$txt_prev;
			echo "<go  href=\"".FILE_CENTER_POINT."?c=".CHOICE_GOTO_ROOM."&amp;k=",$tempSesVar."\"/>\n";
			echo "</anchor><br/>\n";
} 

for ($i = $tempStar-1; $i < $tempEnd; $i++) {
$ol = countOnline($sesUsername, $getRoom[$i]['ROOM_ID'], $sesCobID);
echo "<a title=\"$txt_select\" href=\"".FILE_CENTER_POINT."?c=".CHOICE_ROOM_ENTER."&amp;id=".$getRoom[$i]['ROOM_ID']."&amp;g=1\">".$getRoom[$i]['ROOM_NAME']." (".$ol.")</a><br/>\n";    
}


if (($sesVarNavigation + $sesPhoneCtkDisplayed) < $listCount){
			$tempSesVar = $sesVarNavigation + $sesPhoneCtkDisplayed;
			echo "<anchor title=\"".$txt_next."\">".$txt_next;
			echo "<go  href=\"".FILE_CENTER_POINT."?c=".CHOICE_GOTO_ROOM."&amp;k=".$tempSesVar."\"/>\n";
			echo "</anchor><br/>\n";
}			
disableprev($sesUserAgent);
			
$go = "<go href=\"".FILE_CENTER_POINT."?c=".CHOICE_ROOM_GOTO_EXIT."\"/>\n";
navigate($txt_exit,$txt_exit,"back",$go,$sesUserAgent);		


echo "</p>\n";	
echo "</card>";	
echo "</wml>\n";
?>