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

Размер файла: 3.29Kb
<?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_crtad."\">\n";

echo "<onevent type=\"onenterforward\">\n";
echo "	<refresh>\n";
echo "		<setvar name =\"adn\" value=\"\"/>\n";
echo "		<setvar name =\"roomid\" value=\"\"/>\n";
echo "		<setvar name =\"atx\" value=\"\"/>\n";
echo "		<setvar name =\"adType\" value=\"\"/>\n";
echo "		<setvar name =\"adActive\" value=\"\"/>\n";
echo "		<setvar name =\"adWrap\" value=\"\"/>\n";
echo "	</refresh>\n";
echo "</onevent>\n";

echo "<p align=\"left\">";
echoinput($txt_adname,"adn","","","16",$sesUserAgent);

$listRoom = displayRoom($sesCobID);
echo $txt_selectroom.": <select name=\"roomid\">\n";

for ($i=0; $i<count($listRoom); $i++) {
echo "	<option value=\"".$listRoom[$i]['ROOM_ID']."\">".$listRoom[$i]['ROOM_NAME']."</option>\n";
}

echo "</select><br/>\n";

echo $txt_adType.": <select name=\"adType\">\n";
echo "	<option value=\"1\">".$txt_type1."</option>\n";	//Main page
echo "	<option value=\"0\">".$txt_type2."</option>\n";	//Options Page
echo "</select><br/>\n";

echo $txt_active.": <select name=\"adActive\">\n";
echo "	<option value=\"1\">".$txt_yes."</option>\n"; 
echo "	<option value=\"0\">".$txt_no."</option>\n"; 
echo "</select><br/>\n";

echo $txt_wrap.": <select name=\"adWrap\">\n";
echo "	<option value=\"1\">".$txt_yes."</option>\n";
echo "	<option value=\"0\">".$txt_no."</option>\n";
echo "</select><br/>\n";
	
echoinput($txt_adtext,"atx","","","",$sesUserAgent);
	
$go = "<go method=\"post\" href=\"".FILE_CENTER_POINT."?c=".CHOICE_AD_CREATE_SAVE."\">\n";
$go .=  "	<postfield name=\"adn\" value=\"$(adn)\"/>\n";
$go .=  "	<postfield name=\"atx\" value=\"$(atx)\"/>\n";
$go .=  "	<postfield name=\"adType\" value=\"$(adType)\"/>\n";
$go .=  "	<postfield name=\"adActive\" value=\"$(adActive)\"/>\n";
$go .=  "	<postfield name=\"roomid\" value=\"$(roomid)\"/>\n";
$go .=  "	<postfield name=\"adWrap\" value=\"$(adWrap)\"/>\n";
$go .= "	</go>\n";
navigate($txt_create,$txt_create,"accept",$go,$sesUserAgent);

$go = "<prev/>\n";
navigate($txt_cancel,$txt_cancel,"prev",$go,$sesUserAgent);
echo "</p>";


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