<?php

include("../includes/site_config.php");
include('../session_handler.inc');
include('../functions.php');
/*if ($Sess_UserType != "A") {
    exit;
}*/

# retrieve the template
$area = 'member';
$Flirt_ID = $_GET['Flirt_ID'];

//$sql_result = mysql_query("SELECT * FROM flirt where Flirt_ID = $Flirt_ID", $link);
//$flirt = mysql_fetch_object($sql_result);
?>
<?php include("include/header.php"); ?>
<table width="<?php print("$CONST_TABLE_WIDTH"); ?>" align="<?php print("$CONST_TABLE_ALIGN"); ?>" border="0" cellspacing="<?php print("$CONST_TABLE_CELLSPACING"); ?>" cellpadding="<?php print("$CONST_TABLE_CELLPADDING"); ?>">
        <tr>
      <td align="right">
      <?php 	  //require_once("$CONST_INCLUDE_ROOT/user_status.inc.php");	  require_once("../user_status.inc.php");	  ?>
      </td>
    </tr>
    <tr>

    <td class="pageheader">
      <?= ADM_FLIRTS_ADD_SECTION_NAME ?>
    </td>
    </tr>
    <tr>
      <td><table width="100%"  border="0" cellspacing="<?php print("$CONST_SUBTABLE_CELLSPACING"); ?>" cellpadding="<?php print("$CONST_SUBTABLE_CELLPADDING"); ?>">
        <?php
        $sql_result = mysql_query("SELECT * FROM news WHERE news_id='$newsid'", $link);
        $news = mysql_fetch_object($sql_result);
        ?>
        <form method="post" action="<?php echo $CONST_LINK_ROOT?>/admin/adm_flirts.php<?php print("?PHPSESSID=".session_id()); ?>&mode=EDIT&Flirt_ID=<?=$flirt->Flirt_ID?>" enctype="multipart/form-data">
          <input type="hidden" name="act" value="save">
          <tr>
            <td align="center">

	   <table width="100%"  border="0" cellspacing="<?php print("$CONST_SUBTABLE_CELLSPACING"); ?>" cellpadding="<?php print("$CONST_SUBTABLE_CELLPADDING"); ?>">

                <tr>
                  <td colspan="2" class="tdhead">&nbsp;</td>
                </tr>
                <tr class="tdodd">
                  <td>
                    <?=ADM_FLIRTS_TEXT?>
                  </td>
                  <td> <input name="text" type="text" size=60 maxlength=60 class="input" value="<?=htmlspecialchars($flirt->Text)?>"></td>
                </tr>
                <tr>
                  <td colspan="2" align="center" class="tdfoot"> <input name="submit" type="submit" class="button" value="<?=GENERAL_SAVE?>">
              <!--      <input name="button" type="button" class="button" onclick="window.location = '<?=$CONST_LINK_ROOT?>/admin/adm_flirts.php'" value="<?=GENERAL_CANCEL?>"> -->
                  </td>
                </tr>
              </table></td>
          </tr>
        </form>
      </table></td>
    </tr>
  </table>
<?php include("include/footer.php"); ?>
