السلام عليكــم ورحمـة الله وبركاتــه
اخوانى الاعزاء
مرفق كود الاتى :
اقتباس<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="Description" content="Information architecture, Web Design, Web Standards." />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Erwin Aligam - ealigam@gmail.com" />
<meta name="Robots" content="index,follow" />
<link rel="stylesheet" href="images/Envision.css" type="text/css" />
<title>إضافة شركة</title>
<style type="text/css">
<!--
.style1 {color: #FFF}
.style4 {font-size: 125%; font-weight: bold; }
.style5 {
font-size: 110%;
font-weight: bold;
}
.style6 {color: #FFFFFF}
.style7 {
color: #666666;
font-weight: bold;
font-size: 110%;
}
.style8 {
font-size: 140%;
font-weight: bold;
color: #666666;
}
.style9 {color: #006699}
-->
</style>
</head>
<body>
<!-- wrap starts here -->
<div id="wrap">
<!--header -->
<div id="header">
<h1 id="logo-text"><a href="index.html">Quotaion System </a> </h1>
<p id="slogan">Zidni International </p>
<div id="header-links">
<p align="left"><span class="style1"><a>User :
<%
dim empl_id
empl_id=session("emp_id")
if empl_id="" then
response.Redirect("login.asp")
end if
response.write(session("username"))
%>
</a></span></p>
</div>
</div>
<!-- menu -->
<div id="menu">
<ul>
<li id="current"><a href="print.asp">طباعه</a></li>
<li><a href="add_product.asp"> إضافة منتج </a></li>
<li><a href="made_quotaion.asp">إضافة كوتيشن </a></li>
<li></li>
<li><a href="add_company.asp">إضافه شركة</a></li>
<li class="last"></li>
</ul>
</div>
<!-- content-wrap starts here -->
<div id="content-wrap">
<div id="sidebar">
<h3 align="right">خطوات الاستخدام </h3>
<ul class="sidemenu">
<li>
<div align="justify" class="style8">سوف يتم اصدار رقم للكوتيشن اوتوماتك من خلال النظام </div>
</li>
<li>
<div align="right" class="style8">
<div align="justify">يتم اختيار اسم الشركة التى سوم تقوم بعمل كوتيشن لها </div>
</div>
</li>
<li>
<div align="right" class="style7">
<div align="justify" class="style8">ثم يتم اختيار المنتاجات التى سوف تكتب بالكوتيشن او التى سوف تكون محل العمل</div>
</div>
</li>
<li>
<div align="justify"><span class="style8">فى حاله حدوث اى مشكلة او استفسار يجب اعلان الدعم الفنى مباشرا</span></div>
</li>
<li>+968 92097044 </li>
</ul>
</div>
<%' start%>
<!--#include file=conn.asp-->
<div id="main">
<div align="center" class="sidemenu">
<div align="right">
<h2>إضافة كوتيشن </h2>
<form id="form1" method="get" action="quotationprocess.asp">
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#EDFDCE">
<tr>
<td dir="rtl"><div align="center">
<label>
<div align="right">
<%
dim rst_lastquotation
set rst_lastquotation=server.CreateObject("ADODB.RECORDSET")
rst_lastquotation.OPEN "select gen_quot_number from generator where gen_id=1",db
%>
<label>
<input name="textfield" type="text" class="style5" value="<%response.Write(rst_lastquotation("gen_quot_number"))%>" size="10" disabled/>
</label>
</div>
</label>
</div></td>
<td> <h1 align="right"><strong>: رقم الكوتيشن </strong></h1></td>
</tr>
<tr>
<td dir="rtl"><div align="center">
<label>
<div align="right">
<select name="companyinfo">
<%
dim rst_addcompany
set rst_addcompany=server.CreateObject("ADODB.RECORDSET")
rst_addcompany.OPEN "select comp_id,comp_name from company_info",db
do
%>
<option value="<%response.Write(rst_addcompany("comp_id"))%>">
<%response.Write(rst_addcompany("comp_name"))%>
</option>
<%
rst_addcompany.movenext
loop until rst_addcompany.eof=true
'
rst_addcompany.close
%>
</select>
</div>
</label>
</div></td>
<td> <h1 align="right"><strong>: اسم الشركة </strong></h1></td>
</tr>
</table>
<h2>إختيار منتجات الكوتيشن </h2>
<table width="100%" border="1" bgcolor="#EDFDCE">
<tr>
<td width="21%"><div align="center" class="style9">الكميه المطلوبه </div></td>
<td width="51%"><div align="center" class="style9">اسم المنتج </div></td>
<td width="16%"><div align="center" class="style9">رقم المنتج </div></td>
<td width="12%"><div align="center" class="style9">الاختيار</div></td>
</tr>
<%'start show product here
dim rst_showallproducts
set rst_showallproducts=server.CreateObject("ADODB.RECORDSET")
rst_showallproducts.OPEN "select prod_id,prod_name from prod_info",db
do
%>
<tr id="row<%response.Write(rst_showallproducts("prod_id"))%>">
<td><div align="center">
<label>
<input name="prod_amount<%response.Write(rst_showallproducts("prod_id"))%>" type="text" class="style5" id="prod_amount<%response.Write(rst_showallproducts("prod_id"))%>" size="5" disabled/>
</label>
</div></td>
<td><div align="left"><%response.Write(rst_showallproducts("prod_name"))%></div></td>
<td><div align="center"><%response.Write(rst_showallproducts("prod_id"))%></div></td>
<td><div align="center">
<label>
<input name="chk_prod" type="checkbox" id="chk_prod" value="<%response.Write(rst_showallproducts("prod_id"))%>" onclick="row<%response.Write(rst_showallproducts("prod_id"))%>.style.backgroundColor='#FFB9B9';document.form1.prod_amount<%response.Write(rst_showallproducts("prod_id"))%>.disabled=false"/>
</label>
</div></td>
</tr>
<%
rst_showallproducts.movenext
loop until rst_showallproducts.eof=true
'
rst_showallproducts.close
'end of the produects%>
</table>
<p align="center">
<input name="Reset" type="reset" class="textbox" value="إفراغ" />
<span class="style6">-</span>
<input name="Submit2" type="submit" class="textbox" value="إضــافـــه" />
</p>
</form>
<p class="style4"> </p>
</div>
</div>
</div>
<%'end here%>
<!-- content-wrap ends here -->
</div>
<!--footer starts here-->
<div id="footer">
<p><br />
© 2009<strong> Zidni International </strong>
<a href="default.asp">الرئيسيه</a> |
<a href="index.html">خريطة الموقع </a> |
<a href="index.html">اتصل بنا </a> </p>
</div>
<!-- wrap ends here -->
</div>
</body>
</html>
و لفكرة فى هذا الكود .
اقتباس<input name="chk_prod" type="checkbox" id="chk_prod" value="<%response.Write(rst_showallproducts("prod_id"))%>" onclick="row<%response.Write(rst_showallproducts("prod_id"))%>.style.backgroundColor='#FFB9B9';document.form1.prod_amount<%response.Write(rst_showallproducts("prod_id"))%>.disabled=false"/>
حيث اننى عند اريد ان عند تعليم الشيك بكس .. يتم تعليم الحقل و بالاضافه الى جعل الtext متاح
و لكن ما يحدث هو ان الحقل يتغر لونه و لكن .. التكست لا يتاح مع انى استخدم نفس الكود .
فهل هناك من يعرف ؟؟
شكرا