$sql = "SELECT * FROM nazarat WHERE post_number=$post_number";
$result = mysqli_query($ccoonn ,$sql);
echo"<center>";
echo"<table border=1>";
while($info = mysqli_fetch_array( $result ))
{
echo"<tr>";
$number=$info['number'];
$approve=$info['approve'];
$poster=$info['poster'];
$time=$info['time'];
$nazar=$info['nazar'];
if ($approve=="free")
{
echo"<tr><td >"; echo $number; echo"</td>";
echo"<td >"; echo $poster; echo"</td>";
echo"<td >";
echo $time;
echo"</td>";
echo"<td id='t4'>";
echo"</td><tr>";
echo"<tr><td colspan='4' >";
echo nl2br($nazar);
echo"</td></tr>";
echo"<tr><td colspan='4' >";
echo"</td></tr>";
echo"</tr>";
}// if approve==free
} //while
echo"</table>";
echo"</center>";
$post_number=$_GET['number'];
$str=writeMsg(35);
echo '<a href="query/myfree.php?number='.$ss_number.'">'.$str.'</a>';
$comment_number=$_GET['number'];
$sql = "UPDATE nazarat SET approve='free' WHERE number=$comment_number ";
$str=writeMsg(38);
echo '<a href="query/mywait.php?number='.$ss_number.'">'.$str.'</a>';
$comment_number=$_GET['number'];
$sql = "UPDATE nazarat SET approve='wait' WHERE number=$comment_number ";
#blink {
font-size: 20px;
font-weight: bold;
color: #ff0000;
transition: 0.5s;
}
echo"<div id='blink'>";
echo" hi";
echo"</div>";
<script type="text/javascript">
var blink = document.getElementById('blink');
setInterval(function() {
blink.style.opacity = (blink.style.opacity == 0 ? 1 : 0);
}, 1500);
</script>
include"css/index.php";
<?php
?>
<style>
body
{
background-color:rgba(220,220,200,1);
}
#blink {
font-size: 20px;
font-weight: bold;
color: #ff0000;
transition: s; }
</style>
<?php
?>
include "parts_of_index/show_posts.php";
echo'<td style="background: #ddaa88; padding:5px;">';
echo'<td style="background: #ddaa88; padding:5px;">';
echo'<td id="sotone_shomareh_post">';
#sotone_shomareh_post
{
background:#ddaa88;
padding:5px;
}
<?php
?>
<style>
body
{
}
#blink {
font-size: 20px;
font-weight: bold;
color: #ff0000;
transition: s; }
#sotone_shomareh_post
{
background:#ddaa88;
padding:5px;
}
</style>
<?php
?>
<?php
?>
<style>
body
{
background-color:rgba(220,220,200,1);
}
#blink {
font-size: 20px;
font-weight: bold;
color: #ff0000;
transition: s; }
#sotone_shomareh_post
{
background:#ddaa88;
padding:5px;
}
#sotone_matne_post
{
background:#ffcc99;
padding-left:10px;
padding-right:10px;
padding-top:10px;
}
#sotone_payam_bezarid
{
width:30%;
}
#sotone_chand_nazar
{
width:30%;
padding-right:20px;
padding-left:20px;
}
#sotone_dokmeye_edit
{
width:30%;
padding-right:20px;
}
#bala_tarin_table
{
border:1;
width:100%;
}
#soton1_az_table_aval
{
background: #55cc99;
}
#soton2_az_table_aval
{
background: #ddaa88;
}
#soton3_az_table_aval
{
background: #ddff00;
}
#table_e_satre_dovom
{
border:1;
width:100%;
text-align:center;
}
#sotone_table_dovom
{
background: #ffbbbb;
}
#table_bozorge_vasate_safeh
{
border:0;
}
#sotone_avale_table_bozorge_vasat_safhe
{
vertical-align:top;
background: #f68899;
}
#table_e_soton_1
{
margin-top:20px;
border:1px;
background:#ccaa78;
}
#sotone_sevome_table_bozorge_vasat_safhe
{
vertical-align:top;
background: #cc8899;
}
#avalin_table_e_footer
{
border:1;
width:100%;
background:#aabb44;
}
#sotone_avale_table_avale_footer
{
background:#aa8899;
width:50%;
text-align: center;
}
#sotone_dovome_table_avale_footer
{
background:#992255;
width:10%;">';
}
#dovomin_table_e_footer
{
border:1;
width:100%;
}
#sotone_avale_table_dovome_footer
{
background:#aa8899;
width:20%;
text-align: center;
}
#sotone_dovome_table_dovome_footer
{
background:#aa8899;
width:20%;
text-align:
center;padding:14px;">';
}
#sotone_sevome_table_dovome_footer
{
background:#aa8899;
width:20%;
text-align: center;
}
</style>
<?php
?>
$fileList = glob('./../css/*');
echo'<table border="1">';
foreach($fileList as $filename){//99
echo'<tr><td>';
if(is_file($filename)){//88
// echo"<br>naame file hast: ".$filename;
$filename= str_replace("./../css/","",$filename);
echo"<br>".$filename;
echo"<br>";
echo '<a href="css_file_edit/css_edit.php?name='.$filename.'">'.$filename.'</a>';
//---------------
if (file_exists($filename)) {//777
}//777
echo'</td></tr>';
}//88
}//99
echo'</table>';
$fileList = glob('./../css/*');
$filename=$_GET['name']
echo"<br>";
//echo"<center>";
echo "<br>filename= ".$filename;
$addr_file="../../css/".$filename;
//echo"<br>".$addr_file;
echo"<br><br>";
echo"<table border=1>";
echo"<tr><td>";
$my_string="";
$myfile = fopen($addr_file, "r") or die("Unable to open file!");
while(!feof($myfile)) {
$a=fgets($myfile);
$a = htmlspecialchars($a);
$my_string .=$a;
// echo $a . "<br>";
}
fclose($myfile);
echo nl2br ($my_string);
echo"</td></tr>";
echo"</table>";
// echo nl2br ($my_string);
?>
<textarea id="mytextarea" form="myform" name="news" rows="30" cols="70" style="direction:ltr;">
<?php echo ($my_string); ?>
</textarea><br><br>
<?php
About
General information
EditArea is a free javascript editor for source code.
It allow to write well formated source code. That's no way a WYSIWYG editor.
EditArea is developed by Christophe Dolivet and is currently released under the "LGPL", "Apache" and "BSD" licenses (use the one you want), read the licenses agreement for details.
Features
Easy to integrate, only one script include and one function call
Tabulation support (allow to write well formated source code)
Customizable real-time syntax highlighting (currently: PHP, CSS, Javascript, Python, HTML, XML, VB, C, CPP, SQL, Pascal, Basic, Brainf*ck, and probably more...)
Word-wrap support
Search and replace (with regexp)
Auto-indenting new lines
Line numerotation
Multilanguage support (currently: Croatian, Czech, Danish, Dutch, English, Esperanto, French, German, Italian, Japanese, Macedonian, Polish, Portuguese, Russian, Slovak, Spanish, and probably more...)
Possible PHP gzip compression (compress the core files to one file of ~25Ko)
Allow multiple instances
Full screen mode
Possible plugin integration
Possible save and load callback functions
Possible dynamic content management
Can work in the same environment than "prototype" and "mootools"'s like libraries.