عرض مشاركة مفردة
 
  #10  
قديم 18-02-2011, 11:38 PM
mshkor mshkor غير متصل
عضو
 
تاريخ التسجيل: Aug 2009
مشاركة: 127
مستوى تقييم العضوية: 15
mshkor is on a distinguished road
الافتراضي

اهلا بك

اخي ابحث عن showarticlehtm

وضع هذا الكود بدلا من السابق مع الاحتفاظ بالسابق في المفكرة لديك بالجهاز

الكود
كود:
<!-- INCLUDE BLOCK : header -->
<link rel="stylesheet" href="{img_dir}/rate.css" type="text/css">
<script type="text/javascript" language="javascript" src="scripts/behavior.js"></script>
<script type="text/javascript" language="javascript" src="scripts/rating.js"></script>
<table align="center" border="0" cellpadding="2" cellspacing="0" class="dcitbce" width="95%">
<tr>
<td><table {ldir} align="right" border="0" cellpadding="0" cellspacing="0" class="dcitbce">
<tr>
<td align="right" height="16"><img border="0" src="{img_dir}/se.gif" width="12" height="12">
<!-- START BLOCK : rewriteon -->
<a href="articles-action-listarticle.htm">{article}</a>
<!-- END BLOCK : rewriteon -->
<!-- START BLOCK : rewriteoff -->
<a href="articles.php?action=listarticle">{article}</a>
<!-- END BLOCK : rewriteoff -->
<br></td>
</tr><tr><td align="right" height="16">
 <!-- START BLOCK : rewriteonnav -->
{output} <a href="articles-action-listarticles-id-{catid}.htm"> {catname}</a></td></tr><tr><td align="right" height="16">
 <!-- END BLOCK : rewriteonnav -->
 <!-- START BLOCK : rewriteoffnav -->
{output} <a href="articles.php?action=listarticles&id={catid}"> {catname}</a></td></tr><tr><td align="right" height="16">
 <!-- END BLOCK : rewriteoffnav -->
<!-- START BLOCK : rewriteoncurrcat -->
{output} <a href="articles-action-listarticles-id-{catid}.htm"> {catname}</a><br />
{output}   {caption}
 <!-- END BLOCK : rewriteoncurrcat -->
<!-- START BLOCK : rewriteoffcurrcat -->
{output} <a href="articles.php?action=listarticles&id={catid}"> {catname}</a><br />
{output}   {caption}
 <!-- END BLOCK : rewriteoffcurrcat -->
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<script type="text/javascript" language="javascript" src="{script_url}/scripts/poetry.js"></script>
<!-- START BLOCK : greet -->
<div id="blocktable" style="width:88%">
<div class="contenttitle2"><span style='float: right'><img border="0" src="{img_dir}/arroww2.gif"></span>كلمة الإهداء</div>
<table align="center" border="0" cellpadding="3" cellspacing="1" class="tborder" width="100%" height="40">
<tr>
<td class="tdc" width="100%" {ldir}><span class="news">{greeting}</span><p align=left>{sender_name}</p></td>
</tr>
</table>
</div>
<br>
<!-- END BLOCK : greet -->
<!-- START BLOCK : medea -->
<!--  صورة القسم أو الكاتب -->
<table align="center" border="0" cellpadding="0" cellspacing="1" class="tborder">
<tr>
<td class=tdnav align="center" width="100%" {ldir}><b>{author}</td>
</tr>
</table>
<!--  صورة القسم أو الكاتب -->
<br>
<table align="center" border="0" cellpadding="1" cellspacing="0" width="99%">
<tr>
<td valign="top">
<!-- START BLOCK : extrablocks -->
<div id="blocktable" style="width: 130px;float:left">
<div class="blocktitle"><span style='float: right'><img border="0" src="{img_dir}/arroww.gif"></span>{extrablockname}</div>
{extracont}
<div id="extradiv{blockid}" style="position:relative;">
<div id="extradiv{blockid}status" style="position:relative; width:130px; display:none">
<div id="extradiv{blockid}procces" style="margin:5px 5px 5px 5px"></div>
</div>
<span id="extracont{blockid}">{moreless}</span>
</div>
</div>
<br><br>
<!-- END BLOCK : extrablocks -->
</td>
<td valign="top" width="100%">
<table align="center" {background}  border="0" cellpadding="0" class="dcitbce" width="98%">
<tr>
<td>
<table border="0" cellpadding="4" style="border-collapse: collapse" width="98%">
<tr>
<td valign="top"><div class="news">{article_article}</div><p align=left><span class="dcitbce">نشر بتاريخ {add_date}&nbsp;&nbsp;</span></td>
</tr>
</table></td></tr></table>
<br>
<center>{sound}
<div id="commentico" style="cursor:pointer;display:block">{allowcomnt}
<input type="image" src="{script_url}/infimages/email.gif" name="submit" title="ارسل المقال لصديق" onclick="makeRequest('greet.php?division=article&amp;id={id}&amp;action=pregreet','GET','','commentdiv','content','');">
<input type="image"  src="{script_url}/infimages/print.gif" name="submit" onclick="infaction('print','print','articlesm','{id}');" title="اطبع المحتوى">
<input type="image"  src="{script_url}/infimages/html.gif" name="submit" onClick="infaction('html','save','articlesm','{id}');" title="حفظ الخبر">
<input type="image"  src="{script_url}/infimages/pdf.gif" name="submit" onclick="infaction('pdf','save','articlesm','{id}');" title="pdf حفظ بصيغة">
</div>
<!-- END BLOCK : medea -->
<!-- START BLOCK : rating -->
<table class="tb" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td class="largertext" align="left" valign="top" width="50%">
 <div class="ratingblock"><div id="unit_long{id}">  <ul id="unit_ul{id}" class="unit-rating" style="width:150px;">     <li class="current-rating" style="width:{ratewidth}px;">التقييم {rate}/10</li>
<!-- START BLOCK : rate -->
<li><a href="rate.php?star={star}&amp;id={id}&amp;m={m}&amp;c=10&amp;v={votes}&amp;av={rate}&amp;r=1" title="{star}" class="r{star}-unit rater" rel="nofollow">{star}</a></li>
<!-- END BLOCK : rate -->
  </ul>  أضف تقييمك<p {ldir}>التقييم: <strong> {rate}</strong>/10 ({votes} صوت)  </p></div></div>
</td></tr></tbody></table>
<!-- END BLOCK : rating -->
<div id="commentdiv" style="position:relative; display:none">
<div id="commentdivstatus" style="position:relative; width:150px; display:none">
<div id="commentdivprocces" style="margin:5px 5px 5px 5px"></div>
</div>
<span id="content">
<script language="javascript">
function smilie(smilietext) {
document.commentform.comment.value += smilietext+" ";
document.commentform.comment.focus();
}
function Check(){
var the = document.commentform;
if (the.name.value == ""){
alert("يرجى كتابة اسمك");
the.name.focus();
the.name.style.background = "#FFD2D2";
return false;
}
if (the.email.value == ""){
the.name.style.background = "";
alert("يرجى كتابة بريدك");
the.email.focus();
the.email.style.background = "#FFD2D2";
return false;
}
if (the.comment.value == ""){
the.email.style.background = "";
alert("يرجى كتابة تعليقك");
the.comment.focus();
the.comment.style.background = "#FFD2D2";
return false;
}
return true;
}
function Checkn(){
var thearticle = document.articleform;
if (thearticle.yourname.value == ""){
alert("يرجى كتابة اسمك");
thearticle.yourname.focus();
thearticle.yourname.style.background = "#FFD2D2";
return false;
}
if (thearticle.youremail.value == ""){
thearticle.yourname.style.background = "";
alert("يرجى كتابة بريدك");
thearticle.youremail.focus();
thearticle.youremail.style.background = "#FFD2D2";
return false;
}
if (thearticle.name.value == ""){
thearticle.yourname.style.background = "";
thearticle.youremail.style.background = "";
alert("يرجى كتابة اسم صديقك");
thearticle.name.focus();
thearticle.name.style.background = "#FFD2D2";
return false;
}
if (thearticle.email.value == ""){
thearticle.name.style.background = "";
thearticle.yourname.style.background = "";
thearticle.youremail.style.background = "";
alert("يرجى كتابة بريد صديقك");
thearticle.email.focus();
thearticle.email.style.background = "#FFD2D2";
return false;
}
return true;
}
</script>
</span>
</div>
<br>
<!-- START BLOCK : commentrecords -->
<div id="comt">
<div class="contenttitle2">الـتـعـلـيـقـات</div>
</div>
<br>
<!-- START BLOCK : commentrecord -->
<div id="comt">
<div class="dcitb">
<div class="{class}"><span style="float:left">{iptoc}</span> [{name}] [{date}] {allowcomnt}</div>
<div class="comment">{comment}</div>
</div>
</div>
<!-- START BLOCK : commentreplys -->
<div id="comt">
<div class="dcitb">
<div class="{class}"><span style="float:left">{repliptoc}</span> [{replname}] [{crdate}]</div>
<div class="comment">{commentrepl}</div>
</div>
</div>
<!-- END BLOCK : commentreplys -->
<br />
<!-- END BLOCK : commentrecord -->
<!-- END BLOCK : commentrecords -->
</td>
</tr>
</table>
<div class="dcitbce">{prev_next}</div>
<p>&nbsp;</p>
<!-- INCLUDE BLOCK : footer -->

-----------------------------------------

ثم ابحث عن shownews.htm
وضع هذا الكود مكانه مع الاحتفاض بالاصل ايضا

الكود
كود:
<!-- INCLUDE BLOCK : header -->
<link rel="stylesheet" href="{img_dir}/rate.css" type="text/css">
<script type="text/javascript" language="javascript" src="scripts/behavior.js"></script>
<script type="text/javascript" language="javascript" src="scripts/rating.js"></script>
<table align="center" border="0" cellpadding="2" cellspacing="0" class="dcitbce" width="95%">
<tr>
<td>
<table {ldir} align="right" border="0" cellpadding="0" cellspacing="0" class="dcitbce">
<tr>
<td align="right" height="16"><img border="0" src="{img_dir}/se.gif" width="12" height="12">
<!-- START BLOCK : rewriteon -->
<a href="news-action-listnews.htm">{news}</a>
<!-- END BLOCK : rewriteon -->
<!-- START BLOCK : rewriteoff -->
<a href="news.php?action=listnews">{news}</a>
<!-- END BLOCK : rewriteoff -->
<br></td>
</tr><tr><td align="right" height="16">
 <!-- START BLOCK : rewriteonnav -->
{output} <a href="news-action-listnewsm-id-{catid}.htm"> {catname}</a></td></tr><tr><td align="right" height="16">
 <!-- END BLOCK : rewriteonnav -->
 <!-- START BLOCK : rewriteoffnav -->
{output} <a href="news.php?action=listnewsm&id={catid}"> {catname}</a></td></tr><tr><td align="right" height="16">
 <!-- END BLOCK : rewriteoffnav -->
<!-- START BLOCK : rewriteoncurrcat -->
{output} <a href="news-action-listnewsm-id-{catid}.htm"> {catname}</a><br />
{output}   {caption}
 <!-- END BLOCK : rewriteoncurrcat -->
<!-- START BLOCK : rewriteoffcurrcat -->
{output} <a href="news.php?action=listnewsm&id={catid}"> {catname}</a><br />
{output}   {caption}
 <!-- END BLOCK : rewriteoffcurrcat -->
</td>
</tr>
</table>
</td>
</tr>
</table>
<script type="text/javascript" language="javascript" src="{script_url}/scripts/poetry.js"></script>
<br>
<!-- START BLOCK : greet -->
<div id="blocktable" style="width:88%">
<div class="contenttitle2"><span style='float: right'><img border="0" src="{img_dir}/arroww2.gif"></span>كلمة الإهداء</div>
<table align="center" border="0" cellpadding="3" cellspacing="1" class="tborder" width="100%" height="40">
<tr>
<td class="tdc" width="100%" {ldir}><span class="news">{greeting}</span><p align=left>{sender_name}</p></td>
</tr>
</table>
</div>
<br>
<!-- END BLOCK : greet -->
<table align="center" border="0" cellpadding="1" cellspacing="0" width="99%">
<tr>
<td valign="top">
<!-- START BLOCK : extrablocks -->
<div id="blocktable" style="width: 130px;float:left">
<div class="blocktitle"><span style='float: right'><img border="0" src="{img_dir}/arroww.gif"></span>{extrablockname}</div>
{extracont}
<div id="extradiv{blockid}" style="position:relative;">
<div id="extradiv{blockid}status" style="position:relative; width:130px; display:none">
<div id="extradiv{blockid}procces" style="margin:5px 5px 5px 5px"></div>
</div>
<span id="extracont{blockid}">{moreless}</span>
</div>
</div>
<br><br>
<!-- END BLOCK : extrablocks -->
</td>
<td valign="top" width="100%">
<!-- START BLOCK : news -->
<div id="blocktable">
<div class="contenttitle2"><span style='float: right'><img border="0" src="{img_dir}/arroww2.gif"></span>{caption}</div>
<table align="center" border="0" cellpadding="8" cellspacing="1" class="tborder" width="100%">
<tr>
<td class=tdc {ldir}><span style='float:left'>{media}</span><div class="news">{text}</div></td>
</tr>
</table>
</div>
تم إضافته يوم {dab}
<br>
<div align="center" class="dcitbce">شوهد {views} مرة - تم إرسالة {greet} مرة</div>
<br>
<div align="center" id="commentico" style="cursor:pointer;display:block">{allowcomnt}
<input type="image"  src="{script_url}/infimages/email.gif" name="submit" title="ارسل الخبر لصديق" onclick="makeRequest('greet.php?division=news&amp;id={id}&amp;action=pregreet','GET','','commentdiv','content','');">
<input type="image"  src="{script_url}/infimages/print.gif" name="submit" onclick="infaction('print','print','newsm','{id}');" title="اطبع المحتوى">
<input type="image"  src="{script_url}/infimages/html.gif" name="submit" onClick="infaction('html','save','newsm','{id}');" title="html حفظ بصيغة">
<input type="image"  src="{script_url}/infimages/pdf.gif" name="submit" onclick="infaction('pdf','save','newsm','{id}');" title="pdf حفظ بصيغة">
</div>
<!-- END BLOCK : news -->
<!-- START BLOCK : rating -->
<table class="tb" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td class="largertext" align="left" valign="top" width="50%">
 <div class="ratingblock"><div id="unit_long{id}">  <ul id="unit_ul{id}" class="unit-rating" style="width:150px;">     <li class="current-rating" style="width:{ratewidth}px;">التقييم {rate}/10</li>
<!-- START BLOCK : rate -->
<li><a href="rate.php?star={star}&amp;id={id}&amp;m={m}&amp;c=10&amp;v={votes}&amp;av={rate}&amp;r=1" title="{star}" class="r{star}-unit rater" rel="nofollow">{star}</a></li>
<!-- END BLOCK : rate -->
  </ul>  اضف تقييمك<p {ldir}>التقييم: <strong> {rate}</strong>/10 ({votes} صوت)  </p></div></div>
</td></tr></tbody></table>
<!-- END BLOCK : rating -->
<div id="commentdiv" style="position:relative; display:none">
<div id="commentdivstatus" style="position:relative; width:150px; display:none">
<div id="commentdivprocces" style="margin:5px 5px 5px 5px"></div>
</div>
<span id="content">
<script language="javascript">
function smilie(smilietext) {
document.commentform.comment.value += smilietext+" ";
document.commentform.comment.focus();
}
function Check(){
var the = document.commentform;
if (the.name.value == ""){
alert("يرجى كتابة اسمك");
the.name.focus();
the.name.style.background = "#FFD2D2";
return false;
}
if (the.email.value == ""){
the.name.style.background = "";
alert("يرجى كتابة بريدك");
the.email.focus();
the.email.style.background = "#FFD2D2";
return false;
}
if (the.comment.value == ""){
the.email.style.background = "";
alert("يرجى كتابة تعليقك");
the.comment.focus();
the.comment.style.background = "#FFD2D2";
return false;
}
return true;
}
function Checkn(){
var thenews = document.newsform;
if (thenews.yourname.value == ""){
alert("يرجى كتابة اسمك");
thenews.yourname.focus();
thenews.yourname.style.background = "#FFD2D2";
return false;
}
if (thenews.youremail.value == ""){
thenews.yourname.style.background = "";
alert("يرجى كتابة بريدك");
thenews.youremail.focus();
thenews.youremail.style.background = "#FFD2D2";
return false;
}
if (thenews.name.value == ""){
thenews.yourname.style.background = "";
thenews.youremail.style.background = "";
alert("يرجى كتابة اسم صديقك");
thenews.name.focus();
thenews.name.style.background = "#FFD2D2";
return false;
}
if (thenews.email.value == ""){
thenews.name.style.background = "";
thenews.yourname.style.background = "";
thenews.youremail.style.background = "";
alert("يرجى كتابة بريد صديقك");
thenews.email.focus();
thenews.email.style.background = "#FFD2D2";
return false;
}
return true;
}
</script>
</span>
</div>
<br>
<!-- START BLOCK : commentrecords -->
<div id="comt">
<div class="contenttitle2">الـتـعـلـيـقـات</div>
</div>
<br>
<!-- START BLOCK : commentrecord -->
<div id="comt">
<div class="dcitb">
<div class="{class}"><span style="float:left">{iptoc}</span> [{name}] [{date}] {allowcomnt}</div>
<div class="comment">{comment}</div>
</div>
</div>
<!-- START BLOCK : commentreplys -->
<div id="comt">
<div class="dcitb">
<div class="{class}"><span style="float:left">{repliptoc}</span> [{replname}] [{crdate}]</div>
<div class="comment">{commentrepl}</div>
</div>
</div>
<!-- END BLOCK : commentreplys -->
<br />
<!-- END BLOCK : commentrecord -->
<!-- END BLOCK : commentrecords -->
</td>
</tr>
</table>
<div class="dcitbce">{prev_next}</div>
<!-- INCLUDE BLOCK : footer -->
ويارب انها تزبط معك
واي خدمة ان شاء الله ما اقصر معك جهدي

تحياتي






التوقيع
والله عليمي
http://www.mshkor.com/home/