ocany54
asked on
500 points to convert php codes to asp code
Please convert php codes to asp code(1000 points):
<?php
session_start();
include( "conf_class.php" );
if ( !( $_SESSION['mc2_power'] > 0 || 1 == $open_words ) )
{
include( "func_js.php" );
jsTWinAlert();
jsTWinBack();
die();
}
include( "inc_online.php" );
//------------------------ ---------- ---------- ---------- --*/
if ( !$CONF_MYSQL ) include( "conf_mysql.php" );
$page = ( intval( $_GET['page'] ) > 0 ? ( intval( $_GET['page'] ) - 1 ) : 0 );
$sql = "select t1.*, t2.name from mc2_word as t1, mc2_member as t2 where t1.author=t2.id order by t1.id desc limit ". ( $page * $words_per_page ) .",". ( $words_per_page + 1 );
$Myres = mysql_query( $sql , $Mylink );
$word_num = mysql_num_rows( $Myres );
if ( 0 == $word_num && $page > 0 ) { header( "location: leaveword.php?page=". $page ); die(); }
$f_pageup = ( $page ? 1 : 0 );
$f_pagedown = ( $word_num > $words_per_page ? 1 : 0 ); /
$title = "classmessage";
include( "func_html.php" );
htmlHead( $title , true );
?>
<?php htmlNav( 1 ); ?>
<?php htmlNav2( $class_name , $title ); ?>
<?php
include ( "func_ext.php" );
for ( $i = 0 ; $i < $words_per_page && $objWord = mysql_fetch_object( $Myres ) ; $i++ )
{
echo '
<tr bgcolor=#F3F3F3>
<td height=23 align=center><img src="images/arrow.gif" width=4 height=7></td>
<td class="green1"> '. $objWord->time .' <a href="javascript:dn()" onmouseover="showPopupMenu (this, popMenu, \''. $objWord->author .'\')" onmouseout="hidePopupMenu( this, popMenu)" class=cr1>'. htmlspecialchars( $objWord->name ) .'</a>'. ( $objWord->author == $_SESSION['mc2_id'] ? ' <a href="deal_word.php?action =get&id='. $objWord->id .'" target="deal"><img src="images/word_edit.gif" width=12 height=14 alt="change"></a>' : '' ) . ( ( $_SESSION['mc2_power'] > 1 || $_SESSION['mc2_id'] == $objWord->author ) ? ' <a href="deal_word.php?action =del&id='. $objWord->id .'" target="deal"><img src="images/word_del.gif" alt="delete"></a>' : '' ) .'</td>
<td></td>
</tr>
<tr>
<td height=26></td>
<td class=cla1><div style="width:512px" class=wrap><script>doFlatT xt("'. showWord( $objWord->content , $objWord->bhtml ) .'")</script></div></td>
<td></td>
</tr>';
}
?>
<tr>
<td height=24 align=right class="green1"><?php if ( $f_pageup ) echo '<a href="leaveword.php?page=' . $page .'" class="green1"><<las tpage</a>¡ ¡'; if ( $f_pagedown ) echo '<a href="leaveword.php?page=' . ( $page + 2 ) .'" class="green1">nextpage> ;></a>¡ ¡'; ?>goto <input name=page type=text class="input" size=1> page </td>
<td width=40 align=center><input type=image src="images/btn_21.gif"></ td>
</tr>
<input type=radio name=txtType onclick="show(0)"> 111 <input type=radio name=txtType onclick="show(1)"> 222
<img src="images/btn_26.gif" height=18 width=58 style="display:none" alt="edit" onClick="submitForm(txtFor m,'deal_wo rd.php?act ion=mod')" class=lnk id="txtMod">
<script language="JavaScript"> show(<?php echo ( $_GET['html'] > 0 ? 1 : 0 );?>); </script>
<img src="images/btn_26.gif" height=18 width=58 style="display:none" alt="edit" onClick="e2c();submitForm( htmlForm,' deal_word. php?action =mod')" class=lnk id="htmlMod">
<img src="images/btn_08.gif" height=18 width=58 onclick="e2c();submitForm( htmlForm,' deal_word. php?action =add');" alt="addnew" class=lnk>
<img src="images/btn_09.gif" width=58 height=18 class=lnk onclick="c2e('')" alt="clear">
<?php htmlFoot(); ?>
<?php
session_start();
include( "conf_class.php" );
if ( !( $_SESSION['mc2_power'] > 0 || 1 == $open_words ) )
{
include( "func_js.php" );
jsTWinAlert();
jsTWinBack();
die();
}
include( "inc_online.php" );
//------------------------
if ( !$CONF_MYSQL ) include( "conf_mysql.php" );
$page = ( intval( $_GET['page'] ) > 0 ? ( intval( $_GET['page'] ) - 1 ) : 0 );
$sql = "select t1.*, t2.name from mc2_word as t1, mc2_member as t2 where t1.author=t2.id order by t1.id desc limit ". ( $page * $words_per_page ) .",". ( $words_per_page + 1 );
$Myres = mysql_query( $sql , $Mylink );
$word_num = mysql_num_rows( $Myres );
if ( 0 == $word_num && $page > 0 ) { header( "location: leaveword.php?page=". $page ); die(); }
$f_pageup = ( $page ? 1 : 0 );
$f_pagedown = ( $word_num > $words_per_page ? 1 : 0 ); /
$title = "classmessage";
include( "func_html.php" );
htmlHead( $title , true );
?>
<?php htmlNav( 1 ); ?>
<?php htmlNav2( $class_name , $title ); ?>
<?php
include ( "func_ext.php" );
for ( $i = 0 ; $i < $words_per_page && $objWord = mysql_fetch_object( $Myres ) ; $i++ )
{
echo '
<tr bgcolor=#F3F3F3>
<td height=23 align=center><img src="images/arrow.gif" width=4 height=7></td>
<td class="green1"> '. $objWord->time .' <a href="javascript:dn()" onmouseover="showPopupMenu
<td></td>
</tr>
<tr>
<td height=26></td>
<td class=cla1><div style="width:512px" class=wrap><script>doFlatT
<td></td>
</tr>';
}
?>
<tr>
<td height=24 align=right class="green1"><?php if ( $f_pageup ) echo '<a href="leaveword.php?page='
<td width=40 align=center><input type=image src="images/btn_21.gif"></
</tr>
<input type=radio name=txtType onclick="show(0)"> 111 <input type=radio name=txtType onclick="show(1)"> 222
<img src="images/btn_26.gif" height=18 width=58 style="display:none" alt="edit" onClick="submitForm(txtFor
<script language="JavaScript"> show(<?php echo ( $_GET['html'] > 0 ? 1 : 0 );?>); </script>
<img src="images/btn_26.gif" height=18 width=58 style="display:none" alt="edit" onClick="e2c();submitForm(
<img src="images/btn_08.gif" height=18 width=58 onclick="e2c();submitForm(
<img src="images/btn_09.gif" width=58 height=18 class=lnk onclick="c2e('')" alt="clear">
<?php htmlFoot(); ?>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
^ there may be one or two little errors with the above code ^
ASKER
still got php codes.