منتديات قهوة بلدنا
أهل بكم فى شبكه ومنتديات قهوة بلدنا
أهلا بالزوار الغاليين
نرجو منكم
التسجيل بالمنتدى
او تسجيل دخولكم ان كنتم مسجلين مسبقا
وشكرا
منتديات قهوة بلدنا
أهل بكم فى شبكه ومنتديات قهوة بلدنا
أهلا بالزوار الغاليين
نرجو منكم
التسجيل بالمنتدى
او تسجيل دخولكم ان كنتم مسجلين مسبقا
وشكرا
منتديات قهوة بلدنا
هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.

منتديات قهوة بلدنا


 
الرئيسيةالرئيسية  البوابةالبوابة  أحدث الصورأحدث الصور  التسجيلالتسجيل  دخولدخول  
بسم الله الرحمن الرحيم

تم إفتتاح منتديات جيل المستقبل www.3rbfg.com/vb

تم إفتتاح موقع جيل المستقبل www.3rbfg.com

تم إفتتاح مدونة جيل المستقبل www.3rbfg.com/blog

محتاج مشرفين على المنتدى + مدير و مشرفين للموقع + مدير للمدونة

بمقابل رواتب شهرية

اللى يحب يشترك يكلمنى من هنا

alaashokry12@yahoo.com

وشكراً

 

  إجعل منتداك يكون رائع مع موعد الولادة

اذهب الى الأسفل 
كاتب الموضوعرسالة
Ahmed Alaa
مؤسس المنتدى
مؤسس المنتدى



الدولة : مصر
ذكر
التِنِّين
عدد المساهمات : 936
النقاط : 2147487848
تاريخ الميلاد : 08/03/2000
تاريخ التسجيل : 15/11/2012
العمر : 24
الموقع : الدقهلية

 إجعل منتداك يكون رائع مع موعد الولادة Empty
مُساهمةموضوع: إجعل منتداك يكون رائع مع موعد الولادة    إجعل منتداك يكون رائع مع موعد الولادة Emptyالسبت 26 يناير 2013, 7:05 pm

السلام عليكم ورحمة الله وبركاته ، اقدم لكم كود

موعد الولادة
من برمجتي

اولآ : معلومـآت الكود

البرمجة : شبكة بحر المودة

الحقوق : محفوظة لشركة بحر المود و مطور الكود
{ sa7eb }

.لايحق لاي شخص كان بنزع الحقوق البرمجة من الكود والله شاهد على دلك

تاريخ الاصدار : 8/2/2010 مساءا

الاصدار : v1

يعمل : بجميع نسخ احلى منتدى

ثآنيآ : شرح التركيب والآستخدآم

آذهـب لـ [ لوحة الادارة >>> العناصر >>> صفحات html >>>


آنسخ الكود من هنآ

الرمز:


<!-- START Duedate script -->

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<meta http-equiv="Content-Language" content="ar-bh">
<meta name="keywords" content="تاريخ الولادة , موعد الولادة , حساب الولادة , حاسب الولادة , وقت الولادة">
<meta name="description" content="حساب موعد الولادة">
<title>موعد الولادة</title>
</head>

<script LANGUAGE="JavaScript">

// general purpose function to see if an input value has been entered at all

function isEmpty(inputStr) {

if (inputStr == "" || inputStr == null) {

return true

}

return false

}



// general purpose function to see if a suspected numeric input

// is a positive integer

function isNumber(inputStr) {

for (var i = 0; i < inputStr.length; i++) {

var oneChar = inputStr.charAt(i)

if (oneChar < "0" || oneChar > "9") {

return false

}

}

return true

}



// function to determine if value is in acceptable range for this application

function inRangeDay(inputStr) {

num = parseInt(inputStr)

if (num < 1 || num > 31) {

return false

}

return true

}



// function to determine if value is in acceptable range for this application

function inRangeYear(inputStr) {

num = parseInt(inputStr)

if (num < 1900 || num > 3000) {

return false

}

return true

}



// Master value validator routine for day

function isValidDay(inputStr) {

if (isEmpty(inputStr)) {

alert("الرجاء أدخال التاريخ")

return false

} else {

if (!isNumber(inputStr)) {

alert("التاريخ لابد أن يكون رقم")

return false

} else {

if (!inRangeDay(inputStr)) {

alert("الرجاء إدخال التاريخ الصحيح")

return false

}

}

}

return true

}



// Master value validator routine for year

function isValidYear(inputStr) {

if (isEmpty(inputStr)) {

alert("الرجاء أدخال السنه")

return false

} else {

if (!isNumber(inputStr)) {

alert("السنه لابد أن تكون رقم")

return false

} else {

if (!inRangeYear(inputStr)) {

alert("الرجاء إدخال السنة الصحيحة")

return false

}

}

}

return true

}



function makeArray(n) {

this.length = n

for (var i=1; i <= n; i++)

this[i] = null

return this

}


var maxday = new makeArray(12)

maxday[1] = 31

maxday[2] = 28

maxday[3] = 31

maxday[4] = 30

maxday[5] = 31

maxday[6] = 30

maxday[7] = 31

maxday[8] = 31

maxday[9] = 30

maxday[10] = 31

maxday[11] = 30

maxday[12] = 31



var monthname = new makeArray(12)

monthname[1] = "يناير"

monthname[2] = "فبراير"

monthname[3] = "مارس"

monthname[4] = "أبريل"

monthname[5] = "مايو"

monthname[6] = "يونيو"

monthname[7] = "يوليو"

monthname[8] = "أغسطس"

monthname[9] = "سبتمبر"

monthname[10] = "أكتوبر"

monthname[11] = "نوفمبر"

monthname[12] = "ديسمبر"



var adddays = new makeArray(7)

adddays[1] = 14

adddays[2] = 35

adddays[3] = 70

adddays[4] = 84

adddays[5] = 161

adddays[6] = 189

adddays[7] = 280



// Calculate the date string

function calcNewDate(month,day,year,adddays) {

newday = eval(day) + adddays

newmonth = month + 1

newyear = eval(year)

var max



for (var i = 0; i < 12; i++) {

if (newmonth == 2 && (newyear % 4) == 0) {

max = 29

} else

max = maxday[newmonth]



if (newday > max) {

newday = newday - max

newmonth = newmonth + 1

if (newmonth > 12) {

newyear = newyear + 1

newmonth = 1

}


}

else

break

}

if (newday == 1){
newday = newday + "st"
}else if (newday == 2){
newday = newday + "nd"
}else if (newday == 3){
newday = newday + "rd"
}else if (newday >= 4){
newday = newday + ""
}



var datestring = newday + "/ " + monthname[newmonth] + "/ " + newyear

return datestring

}



// Get the date entered and calculate the rest of the dates

function calc(form) {



day = form.day.value

year = form.year.value

monthnum = form.month.selectedIndex



if (isValidDay(day)) {

if (isValidYear(year)){

form.conception.value = calcNewDate(monthnum,day,year,adddays[1])

form.beginrisk.value = calcNewDate(monthnum,day,year,adddays[2])

form.endrisk.value = calcNewDate(monthnum,day,year,adddays[3])

form.beginorgan.value = calcNewDate(monthnum,day,year,adddays[2])

form.endorgan.value = calcNewDate(monthnum,day,year,adddays[3])

form.duedate.value = calcNewDate(monthnum,day,year,adddays[7])

}

}

}

</script>
<!-- END Duedate script -->
<table align="center" border="0" cellpadding="0" class="tb" width="99%">
<tr>
<td width="87%" valign=top align="center">
<p align="center">&nbsp;</p>
<p
align="center"><font size="4" face="Times New Roman"
color="#660033"><b>حساب موعد الولادة وبعض الفترات المهمة من
مراحل الحمل</b></font></p>
<p align="center"><font face="Times New Roman" color="#000000" size="3"><strong>من فضلك أدخلي
تاريخ أول يوم في آخر دورة شهرية ثم اضغطي على زر </strong></font>
<font face="Times New Roman"><br><br>
</font>
<font
face="Times New Roman" color="#cc0000" size="3"><strong>' أحسب
حقائق حول حملي '</strong></font></p>
<form NAME="dates" dir="rtl">
<table BORDER="1" CELLSPACING="0" CELLPADDING="5" align="center">
<tr>
<td ALIGN="RIGHT" width="288">
<strong><font face="Times New Roman">
تاريخ اليوم الأول من أخر دورة شهرية :</font></strong></td>

<td width="22"><strong><font face="Times New
Roman" size="2"><input TYPE="number" NAME="day" VALUE="1"
SIZE="2"></font></strong></td>
<td ALIGN="RIGHT" width="1"></td>
<td width="103"><strong><font face="Times New Roman" size="2"><select NAME="month" size="1">
<option value="January">يناير</option>
<option value="February">فبراير</option>
<option value="March">مارس</option>
<option value="April">أبريل</option>
<option value="May">مايو</option>
<option value="June">يونيو</option>
<option value="July">يوليو</option>
<option value="August"> أغسطس</option>
<option value="September">سبتمبر</option>
<option value="October">أكتوبر</option>
<option value="November">نوفمبر</option>
<option value="December">ديسمبر</option>
</select></font></strong></td>

<td ALIGN="RIGHT" width="30"><strong><font
face="Times New Roman"
size="3">السنه</font></strong></td>
<td width="25"><font face="Times New Roman" size="2">
<input TYPE="number" NAME="year" VALUE="2006" SIZE="4&lt;/TD"> </font> </td>
</tr>
</table>
<p
align="center"><font face="Times New Roman" size="2"><input
TYPE="button" VALUE="أحسب حقائق حول حملي" onClick="calc(this.form);
duedate.focus();"> </font> </p>
<table BORDER="1" CELLPADDING="2" CELLSPACING="0" height="79" align="center">
<tr>
<td ALIGN="center" height="1"><strong>
<font face="Times New Roman"> التاريخ
التقريبي لحدوث الحمل :</font></strong></td>

<td height="1" align="center"><strong><font
face="Times New Roman" size="2"><input TYPE="text"
NAME="conception" SIZE="18"
VALUE></font></strong></td>
</tr>
<tr>
<td ALIGN="center" height="32"><strong><font face="Times New Roman">
الفترة التي تزيد فيها
خطورة الإجهاض :</font></strong></td>

<td height="32" align="center"><strong><font
face="Times New Roman" size="2"><input TYPE="text"
NAME="beginrisk" SIZE="18"
VALUE></font></strong></td>
<td
ALIGN="center" height="32"><strong><font face="Times New
Roman" size="2">>>></font></strong></td>

<td COLSPAN="2" height="32" align="center"><font
face="Times New Roman" size="2"><input TYPE="text" NAME="endrisk"
SIZE="18" VALUE></font></td>
</tr>
<tr>
<td ALIGN="center" height="34"><strong><font face="Times New Roman">
بدء تخلق
أعضاء الجنين : </font></strong></td>

<td height="34" align="center"><strong><font
face="Times New Roman" size="2"><input TYPE="text"
NAME="beginorgan" SIZE="18"
VALUE></font></strong></td>
<td height="34" align="center"></td>
<td ALIGN="center" height="34"></td>
<td height="34" align="center"></td>
</tr>
<tr>
<td ALIGN="center" height="29"><strong>
<font face="Times New Roman">إكتمال أعضاء
الجنين الهامة : </font></strong></td>

<td height="29" align="center"><strong><font
face="Times New Roman" size="2"><input TYPE="text" NAME="endorgan"
SIZE="18" VALUE></font></strong></td>
<td height="29" align="center"></td>
</tr>
<tr>
<td ALIGN="center" height="34"><strong><font face="Times New Roman">
<font color="#CC0000">التاريخ المتوقع للولادة بإذن الله تعالى</font>
: </font></strong></td>

<td height="34" align="center"><strong><font
face="Times New Roman" size="2"><input TYPE="text" NAME="duedate"
SIZE="18" VALUE></font></strong></td>
</tr>
</table>
<p><font color="#c0c0c0"><strong><font size="2">الحقوق محفوظة لشركة
بحر المود و مطور الكود <br>
{ sa7eb }</font></strong><font size="2"><br>
</font></font><span lang="en-us">
<a href="http://www.almawada.ba7r.org">
<font color="#bfbfbf" size="2">www.almawada.ba7r.org</font></a></span></p>
</form>
</table>



:: آرجو عدم حذف حقوق الكود والشرح ورجآء ذكر المصدر عند النقل ::

آتمنى آن يعجبكم وينال رضاكم
وسيتم البدا في برمجة الاصدار اثاني المطور
والسلام عليكم
الرجوع الى أعلى الصفحة اذهب الى الأسفل
http://www.AhmedAlaa.Ahlamountada.com
 
إجعل منتداك يكون رائع مع موعد الولادة
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1
 مواضيع مماثلة
-
»  إجعل منتداك يكون رائع مع احسب عمرك
»  إجعل منتداك يكون رائع مع اختبر سرعة طباعتك
»  إجعل منتداك يكون رائع مع تحويل التاريخ من هجري الى ميلادي والعكس
»  كود طور منتداك : إجعل منتداك يظهر بلغات متعددة حسب رغبة الزائر
» كود ترحيب بشكل رائع

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
منتديات قهوة بلدنا :: قسم تطوير المنتديات و المساعدة على إدارتها :: التطوير و المساعدة :: تطوير منتديات - تقنيات خاصة - برمجة-
انتقل الى: