הרשם שאלות ותשובות רשימת חברים לוח שנה חיפוש הודעות מהיום סמן פורומים כנקראו

   
|!|

השב
 
כלים לאשכול תצורת הצגה
ישן 08-09-08, 08:24   # 11
Jonathan Zeierman
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Jun 2007
הודעות: 1,003

Jonathan Zeierman לא מחובר  

לא עובד...
יכול ליהיות שלא הכנסתי נכון אבל זה מה שעשיתי:
קוד ה-PHP:
PHP קוד:
<?php
echo <<<HTML
<link rel="stylesheet" type="text/css" href="style.css"/>
<script type="text/javascript" src='validator.js'></script>
<script type="text/javascript" src='openmsg.js'></script>
HTML;
////////////////////////////////////////////////////////////////////////////
$myemail "yoni@ventrilo.co.il,admin@ventrilo.co.il"// איימלים לקבלת איימיל
////////////////////////////////////////////////////////////////////////////
switch($_GET["act"]) {
case 
"send":
send();
break;
 
default:
showform();
break;
}
function 
showform() {
echo <<<END
<style>
.text {font-size:11px;font-family:Arial;color:#414141;text-align:right;vertical-align:top;}

.text a:link, .text  a:visited, .text  a:active { text-decoration: none;color: gray; }
.text a:hover { text-decoration: none;color:#000 }

.forminput { font-size: 10px;font-family: tahoma;vertical-align: middle;text-align:left;background-color: #FFFFFF;border: 1px inset #d7d7d7; }

BODY {background: #FFF url(images/index_24.jpg);font-size:11px;font-family:Arial;color:gray;text-align:right;vertical-align:top;}
</style>
<form action="?act=send" method="post" name="FrontPage_Form1" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript">
<div dir="rtl" align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="35%">
<tr>
<td width="40%"><b><u>פרטי לקוח:</b></u></td>
</tr>
<tr>
<td width="40%">שם פרטי:</td>
<td width="60%"><input type="text" name="name" size="22"></td>
</tr>
<tr>
<td width="40%">שם משפחה:</td>
<td width="60%"><input type="text" name="lname" size="22"></td>
</tr>
<tr>
<td width="40%">כתובת(להוצאת קבלה):</td>
<td width="60%"><input type="text" name="address" size="22"></td>
</tr>
<tr>
<td width="40%">טלפון:</td>
<td width="60%"><input type="number" name="phone" size="22"></td>
</tr>
<tr>
<td width="40%">כתובת דואר אלקטרוני:</td>
<td width="60%"><input type="text" name="email" size="22"></td>
</tr>
<tr>
<td width="40%">השירות שהוזמן:</td>
<td width="60%"><select name="service" class="forminput">
<option value="אנא בחר שירות" style='font-weight: bold; color: red'>אנא בחר שירות</option>
<option value="אחסון אתרים" onclick="document.getElementById('hosting').style. display = 'table';"='font-weight: bold; color: black'>אחסון אתרים</option>
<option value="שרת משחק" style='font-weight: bold; color: black'>שרת משחק</option>
<option value="שרת ונטרילו" style='font-weight: bold; color: black'>שרת ונטרילו</option>
<option value="שם מתחם" style='font-weight: bold; color: black'>שם מתחם</option>
</select>
</td>
</tr>
<tr>
<td width="40%">הסכום שהופקד:</td>
<td width="60%"><input type="text" name="money" size="9"></td>
</tr>
<tr>
<td width="40%">מספר אסמכתא:</td>
<td width="60%"><input type="text" name="payn" size="9"></td>
</tr>
<div id="hosting" style="display: none;"></div>
<tr>
<td width="100%" colspan="2">
<center>
<input type="submit" value="שלח" name="submit">
<input type="reset" value="נקה" name="reset">
</center></td>
</tr>
</table>
</center>
</div>
</form>
END;
echo 
"<center>";
echo 
"כתובת האייפי שלך נשמרת מטעמי אבטחה:";
echo 
$_SERVER['REMOTE_ADDR'];
echo 
"</center>";
}
function 
send() {
global 
$myemail;
$name $_POST["name"];
$lname $_POST["lname"];
$address $_POST["address"];
$phone $_POST["phone"];
$email $_POST["email"];
$service $_POST["service"];
$money $_POST["money"];
$payn $_POST["payn"];
if(
$service == 'שרת ונטרילו'){
$vserver $_POST["vserver"];
$vpanel $_POST["vpanel"];
$vpass $_POST["vpass"];
$vdate $_POST["vdate"];
$vslots $_POST["vslots"];
}
if(
$service == 'אחסון אתרים'){
$huser $_POST["huser"];
$hpass $_POST["hpass"];
$hemail $_POST["hemail"];
$hdate $_POST["hdate"];
}
if(
$service == 'שם מתחם'){
$duser $_POST["duser"];
$dpass $_POST["dpass"];
$demail $_POST["demail"];
$ddate $_POST["ddate"];
$dname $_POST["dname"];
}
$date date("d/m/Y");
$ip $_SERVER['REMOTE_ADDR'];
$to $myemail;
$subject "תשלום מלקוח";
$body "
\nפרטי לקוח כללי:
\nשם: $name
\nשם משפחה: $lname
\nכתובת: $address
\nטלפון: $phone
\nאיימיל: $email
\nשירות שהוזמן: $service
\nהסכום שהופקד: $money
\nמספר אסמכתא: $payn
\nתאריך ההזמנה: $date
\nאייפי: $ip
\nפרטי שרת ונטרילו:
\nשם השרת: $vserver
\nשם משתמש: $vpanel
\nסיסמא: $vpass
\nתקופת ההזמנה: $vdate חודשים
\nכמות סלוטים: $vslots
\nפרטי שרת אחסון:
\nשם משתמש: $huser
\nסיסמא: $hpass
\nאיימיל: $hemail
\nתקופת ההזמנה: $hdate חודשים
\nפרטי שם מתחם:
\nשם משתמש: $duser
\nסיסמא: $dpass
\nאיימיל: $demail
\nתקופת הדומיין: $ddate
\nשם הדומיין: $dname"
;
$from $email;
mail($to,$subject,$body,$from);
echo <<<HTML
<style>
.text {font-size:11px;font-family:Arial;color:#414141;text-align:right;vertical-align:top;}

.text a:link, .text  a:visited, .text  a:active { text-decoration: none;color: gray; }
.text a:hover { text-decoration: none;color:#000 }

.forminput { font-size: 12px;font-family: tahoma;vertical-align: middle;text-align:left;background-color: #FFFFFF;border: 1px inset #d7d7d7; }

BODY {background: #FFF url(images/index_24.jpg);font-size:11px;font-family:Arial;color:gray;text-align:right;vertical-align:top;}
</style>
<center>
<span dir="rtl">
טופס ההפקדה נשלח בהצלחה!
</center>
</p>
HTML;
}
 
?>
קוד ה- CSS:
PHP קוד:
body {
background#54B7E0;
font-size12px;
padding0;
margin0;
color#333;
line-height17px;
}
#hosting
{
Div="none"
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="35%">
<
td width="40%"><b><u>פרטי שרת אחסון:</b></u></td>
</
tr>
<
tr>
<
td width="40%">שם משתמש:</td>
<
td width="60%"><input type="text" name="huser" size="22"></td>
</
tr>
<
tr>
<
td width="40%">סיסמא:</td>
<
td width="60%"><input type="password" name="hpass" size="22"></td>
</
tr>
<
tr>
<
td width="40%">איימיל:</td>
<
td width="60%"><input type="text" name="hemail" size="22"></td>
</
tr>
<
tr>
<
td width="40%">תקופת השרת(חודשים):</td>
<
td width="60%"><select name="hdate" class="forminput">
<
option value="1" style='font-weight: bold; color: black'>1</option>
<
option value="2" style='font-weight: bold; color: black'>2</option>
<
option value="3" style='font-weight: bold; color: black'>3</option>
<
option value="4" style='font-weight: bold; color: black'>4</option>
<
option value="5" style='font-weight: bold; color: black'>5</option>
<
option value="6" style='font-weight: bold; color: black'>6</option>
<
option value="7" style='font-weight: bold; color: black'>7</option>
<
option value="8" style='font-weight: bold; color: black'>8</option>
<
option value="9" style='font-weight: bold; color: black'>9</option>
<
option value="10" style='font-weight: bold; color: black'>10</option>
<
option value="11" style='font-weight: bold; color: black'>11</option>
<
option value="12" style='font-weight: bold; color: black'>12</option>
</
tr>
</
table>
</
div>

__________________
יונתן.
אימייל: jonathan@zeierman.net
  Reply With Quote
השב

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 

כלים לאשכול
תצורת הצגה

חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 14:17.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ