مشاهدة النسخة كاملة : كود خصائص الخط بلغة DHTML
nesreen80
25-05-2004, 01:16 PM
السلام عليكم
اتمني ان يعلمنى احدكم او يعطني الكود الصحيح لانشاء صفحة ادخال بلغة Dhtml
الدي يخص كود Bold,font size, color font,,lif, right
اي باختصار اي خصائص الخط المدخل لاني اريد ان استعملها في صفحة ادخال بلغة php
وفيها كود Dhtml الدي يمنح خصائص للخط اي متل الخصائص المستخدم في هدا المتدى او الايميل
اتمنى ان تكونو فهمتم قصدي وتستطيعون مساعدتي
amgadpasha
26-05-2004, 05:15 AM
will t's a tough one
try 2 follow this and tell me
http://forums.devshed.com/archive/t-16352
nesreen80
26-05-2004, 11:24 AM
شكرا على الرد دخلت الى الموقع ولكن لم اجد شي من الدي اريده وعندما وجدت كود bold
جربته عندي في الدريم ويفر ولم يعمل
ادا كان هنالك من يساعدني فا اتمنى ان يسرع لان احتاج الى mini editor dhtml
بأسرع وقت
من فضلكم
amgadpasha
26-05-2004, 04:24 PM
ok, what about this
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndude/html/dude11272000.asp
nesreen80
27-05-2004, 10:49 AM
شكرا على اهتمامك ولكن لم اجد فيه شي اريده في الموقع الدي اعطيتني اياه
انا جهزت صفحة ادخال بلغة php واريد ان اضيف لها كود خاص بلغة Dhtml
الدي يخص Bold,font size, color font,,lif, right
اي باختصار اي خصائص الخط المدخل لاني اريد ان استعملها في صفحة ادخال بلغة php
وفيها كود Dhtml الدي يمنح خصائص للخط اي متل الخصائص المستخدم في هدا المنتدى او الايميل
اتمنى ان تكونو فهمتم قصدي وتستطيعون مساعدتي باسرع الوقت ممكن.
amgadpasha
28-05-2004, 11:18 PM
k, first of all, sorry for the last link, that was completly irrelevant to the subject, i sent u a wrong link
again try this one, i think it's what u need
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnaredcom/html/edcomdownload.asp
also, i wanted to ask u, can't u view the source code of the reply page in this forum to understand what do u want :33: ?
nesreen80
29-05-2004, 09:55 AM
<?php require_once('../Connections/tripoli.php'); ?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
$editFormAction = $HTTP_SERVER_VARS['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$editFormAction .= "?" . $HTTP_SERVER_VARS['QUERY_STRING'];
}
if ((isset($HTTP_POST_VARS["MM_insert"])) && ($HTTP_POST_VARS["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO category (id_cat, title, active_fg) VALUES (%s, %s, %s)",
GetSQLValueString($HTTP_POST_VARS['id_cat'], "int"),
GetSQLValueString($HTTP_POST_VARS['title'], "text"),
GetSQLValueString(isset($HTTP_POST_VARS['active_fg']) ? "true" : "", "defined","'Y'","'N'"));
mysql_select_db($database_tripoli, $tripoli);
$Result1 = mysql_query($insertSQL, $tripoli) or die(mysql_error());
$insertGoTo = "admincategory.php";
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}
$col_category = "0";
if (isset($HTTP_GET_VARS['id_cat'])) {
$col_category = (get_magic_quotes_gpc()) ? $HTTP_GET_VARS['id_cat'] : addslashes($HTTP_GET_VARS['id_cat']);
}
mysql_select_db($database_tripoli, $tripoli);
$query_category = sprintf("SELECT * FROM category WHERE category.id_cat=%s", $col_category);
$category = mysql_query($query_category, $tripoli) or die(mysql_error());
$row_category = mysql_fetch_assoc($category);
$totalRows_category = mysql_num_rows($category);
?>
nesreen80
29-05-2004, 09:57 AM
<html>
<head>
<title>ÇÖÇÝÉ ÇáãæÖæÚ</title>
****** http-equiv="Content-Type" content="text/html; charset=">
<link href="../home/css/main.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFDF">
<p> </p>
<form action="<?php echo $editFormAction; ?>" name="form1" method="POST">
<table width="465" height="319" align="center" bgcolor="#FFFFCC">
<tr>
<td width="144" height="50" align="right" valign="middle"> <div align="right">
<input name="title" type="text" id="title">
</div></td>
<td width="130" align="center" valign="middle" class="tripoli"><strong>ÇÖÇÝÉ
ÇáãæÖæÚ </strong></td>
</tr>
<tr>
<td align="right" valign="middle"> <textarea name="description" id="description"></textarea></td>
<td align="center" valign="middle" class="tripoli"><strong>æÕÝ
ÇáÎÈÑ</strong></td>
</tr>
<tr>
<td align="right" valign="middle"> <textarea name="text" id="text"></textarea></td>
<td align="center" valign="middle" class="tripoli"><strong>ÇáäÕ</strong></td>
</tr>
<tr>
<td height="33" align="right" valign="middle"> <input name="pic" type="text" id="pic"></td>
<td align="center" valign="middle" class="tripoli"><strong>ÇáÕæÑÉ</strong></td>
</tr>
<tr>
<td align="right" valign="middle"> <input name="active_fg" type="checkbox" id="active_fg" value="Y"></td>
<td align="center" valign="middle" class="tripoli"><strong>ÇÙåÇÑ
ÇáÎÈÑ</strong></td>
</tr>
<tr>
<td align="right" valign="middle"> <input name="flag" type="text" id="flag"></td>
<td align="center" valign="middle" class="tripoli"><strong>ÍÑÝ
ÇáãæÖæÚ</strong></td>
</tr>
<tr> </tr>
</table>
<p>
nesreen80
29-05-2004, 09:58 AM
<input name="id_cat" type="hidden" id="id_cat" value="<?php echo $row_category['id_cat']; ?>">
</p>
<div align="center">
<input name="id_cat" type="hidden" id="id_cat" value="<?php echo $HTT_GET_VARA['id_cat']; ?>">
<input type="submit" name="Submit2" value="مسح">
<input type="submit" name="Submit" value="موافق">
</div>
<input type="hidden" name="MM_insert" value="form1">
</form>
<p> </p>
<p> </p>
</body>
</html>
<?php
mysql_free_result($category);
?>
nesreen80
29-05-2004, 10:10 AM
اوكي هدا الكود بترتيب كود الصفح الادخال عندي مخدومة بلغة php ,وتقوم باضافة بشكل صحيح ومربوطة بقاعدة البيانات انا ماعنديش مشكلة فيها الشي الدي اريد وكما وضحت لك سابقا هو كيفية اضافة ازار المحرر او الازار الخاصة بخواص الخط من ناحية اللون, السمك, نوع الخط, ومكانه كيف اربط
الكود dhyml مع هده الصفحة بحيت عند ادخال للموضوع يمكنني التحكم بخائص الخط كما في الايميل او المنتديات او word فاياريت تساعدني
amgadpasha
29-05-2004, 10:19 PM
ok, i told u follow that link, and u'll find what u want, or another soloution is to view the source of the editing page (espicialy that this website is made using php) and use it n ur project
if u want me 2 write u the code, i am sorry, but am not that good in HTML
u can make a post at the HTML and WEB designing sub forum.. think they'll be more helpfull there, here we r more interested in programming, not web development :)
nesreen80
30-05-2004, 09:34 AM
thanks any way
جميع حقوق برمجة vBulletin محفوظة ©2025 ,لدى مؤسسة Jelsoft المحدودة.
جميع المواضيع و المشاركات المطروحة من الاعضاء لا تعبر بالضرورة عن رأي أصحاب شبكة المنتدى .