We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

500 points to convert php codes to asp code

ocany54
ocany54 asked
on
Medium Priority
376 Views
Last Modified: 2012-08-14
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>doFlatTxt("'. 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">&lt;&lt;lastpage</a>¡¡'; if ( $f_pagedown ) echo '<a href="leaveword.php?page='. ( $page + 2 ) .'" class="green1">nextpage&gt;&gt;</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(txtForm,'deal_word.php?action=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(); ?>
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Commented:
^ there may be one or two little errors with the above code ^

Author

Commented:
still got php codes.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.