<form id="form1" name="form1" method="post" action="">
<table width="361" border="1" align="center">
<tr>
<td width="121">ID ANGGOTA </td>
<td width="224"><input name="id_angg" type="text" id="id_angg" /> </td>
</tr>
<tr>
<td>Nama</td>
<td><? echo "";?></td>
</tr>
<tr>
<td>Alamat</td>
<td><? echo "";?></td>
</tr>
<tr>
<td>Telp</td>
<td><? echo "";?></td>
</tr>
<tr>
<td>ID BUKU </td>
<td><input name="id_buku" type="text" id="id_buku" /></td>
</tr>
<tr>
<td>Judul</td>
<td><? echo "";?></td>
</tr>
<tr>
<td>Penulis</td>
<td><? echo "";?></td>
</tr>
<tr>
<td>Penerbit</td>
<td><? echo "";?></td>
</tr>
<tr>
<td>Tgl Pinjam </td>
<td><input name="tgl_pinjam" type="text" id="tgl_pinjam" /></td>
</tr>
<tr>
<td>Tgl Kembali </td>
<td><input name="tgl_kembali" type="text" id="tgl_kembali" />
</td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Submit" />
</td>
</tr>
</table>
</form>
$start_time = strtotime("2011-01-27");
$end_time = strtotime("2011-09-26");
$current_time = time();
if($current_time < $start_time || $current_time > $end_time){
echo "Maaf, waktu untuk pengisian atau pengeditan KRS sudah berakhir";
echo " <p><input type='button' value='kembali' onclick=self.history.back()>";
CREATE TABLE `waktukrs` (
`idtime` int(1) NOT NULL auto_increment,
`time1` date NOT NULL,
`time2` date NOT NULL,
PRIMARY KEY (`idtime`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
<?php
function cleanText($str){
$result = str_ireplace(array("\r","\n","\t"), "", $str);
return $result;
}
mysql_connect("localhost", "root", "");
mysql_select_db("db_wtn");
$namaTabel = "jos_content";
header('Content-Type: text/xml');
$query = "SELECT * FROM $namaTabel ORDER BY id";
$hasil = mysql_query($query);
$jumField = mysql_num_fields($hasil);
echo "<?xml version='1.0'?".">\n";
echo "<cu3er>
<settings>
<auto_play>
<defaults symbol="circular"/>
<tweenIn x="250" y="120" width="50" height="50" tint="0xFFFFFF" alpha="0.7" />
<tweenOver alpha="0" />
</auto_play>
<general slide_panel_width="500" slide_panel_height="250" ui_visibility_time="2" />
<prev_button>
<tweenIn x="860" y="130" width="30" height="30" alpha="0"/>
<tweenOver alpha="0"/>
</prev_button>
<next_button>
<tweenIn x="890" y="130" width="30" height="30" alpha="0"/>
<tweenOver alpha="0"/>
</next_button>
<prev_symbol>
<defaults type="3"/>
<tweenIn x="860" y="130" alpha="0.5"/>
<tweenOver time="0.15" x="860" scaleX="1.1" scaleY="1.1"/>
</prev_symbol>
<next_symbol>
<defaults type="3"/>
<tweenIn x="890" y="130" alpha="0.5"/>
<tweenOver time="0.15" x="890" scaleX="1.1" scaleY="1.1"/>
</next_symbol>
<description>
<defaults round_corners="20, 20, 20, 20" delay="0.5" heading_text_size="22" heading_text_color="0xffffff" paragraph_text_size="13" paragraph_text_color="0xFFFFFF" heading_text_margin="20, 20, 20, 20" />
<tweenIn x="520" y="20" width="310" height="200" alpha="0.7" />
<tweenOut x="520" time="0.5" y="20" alpha="0.2" />
<tweenOver y="20" x="520" alpha="0.7"/>
</description>
</settings>
<slides>\n";
echo "<data>\n";
while ($data = mysql_fetch_array($hasil))
{
echo "<".$namaTabel.">\n";
for ($i=0; $i<=$jumField-1; $i++)
{
$namaField = mysql_field_name($hasil, $i);
echo "<".$namaField."><![CDATA[".urlencode(strip_tags($data[$namaField]))."]]></".$namaField.">\n";
}
echo "</".$namaTabel.">\n";
}
echo "</data>\n";
echo " <transition num="4" direction="left" shader="flat" z_multiplier="0.8" delay="0.05"/>
</slides>
</cu3er>";
?>