PHP Classes

File: other.phtml

Recommend this page to a friend!
  Classes of Slava Ivanov  >  vCard Class  >  other.phtml  >  Download  
File: other.phtml
Role: Example script
Content type: text/plain
Description: example application
Class: vCard Class
Class to manipulate with vCard information
Author: By
Last change:
Date: 19 years ago
Size: 3,301 bytes


Class file image Download
("Cache-Control: no-cache");
Header("Pragma: no-cache");
Header("Expires: Sat, Jan 01 2000 01:01:01 GMT");

$SCRIPT_NAME = "other.phtml";
$title = "vCard";
$FORM_NAME = "jform";
$act = $_POST["act"];

if (
$act == "index" || $act == "personal" || $act == "home" || $act == "business" || $act == "saveit") {
$_SESSION["vCardinfo"]["note"] = trim(stripslashes($_POST["note"]));
    if (
$act == "saveit")
header("Location: index.phtml?act=saveit"));
header("Location: ".$act.".phtml"));


<form method="post" action="<? echo $SCRIPT_NAME ?>" name="<? echo $FORM_NAME ?>">
<table cellspacing="1" cellpadding="0" border="0" width="485" align="center">
<? include("vmenu.phtml"); ?>
<td colspan="8" valign="top">
    <table cellspacing="0" cellpadding="0" border="0" width="100%" bgcolor="#bebebe">
    <td bgcolor="#eeeeee" width="1"><img src="../images/spacer.gif" width="1" height="300"></td>
    <td valign="top">
    <!------------------------contents go here ---------------------------------------------------------->

    <table cellspacing="0" cellpadding="0" border="0" width="100%">
    <td colspan="2">
        <table cellspacing="0" cellpadding="7" border="0">
        <td>&nbsp;Enter notes here.</td>
    <td valign="top" class="medium">&nbsp;Notes: </td><td valign="top">
        <script language="javascript">
        var browser_type=navigator.appName;
        var browser_version=parseInt(navigator.appVersion);
        if (browser_type=="Netscape" && browser_version < 5)
            document.write ('<textarea tabindex=5 cols="35" rows="6" name="note" wrap>');
            document.write ('<textarea tabindex=5 cols="55" rows="6" name="note">');
        </script><? echo htmlspecialchars($_SESSION["vCardinfo"]["note"]); ?></textarea></td>

    <td bgcolor="black" width="1"><img src="../images/spacer.gif" width="1" height="1"></td>
    <td bgcolor="black" colspan="3"><img src="../images/spacer.gif" width="1" height="1"></td>

<table width="485" align="center" cellpadding="0" cellspacing="0" border="0">
<td colspan="3"><img src="../images/spacer.gif" width="1" height="2"></td>
<tr bgcolor="#e5e5e5">
<td align="right"><input type="button" name="delete" value="Delete" onclick="javascript:dosubmit('deleteit',document.<? echo $FORM_NAME ?>);">&nbsp;<input type="button" name="cancel" value="Cancel" onclick="javascript:dosubmit('cancelit',document.<? echo $FORM_NAME ?>);">&nbsp;<input type="button" name="save" value=" Save " onclick="javascript:dosubmit('saveit',document.<? echo $FORM_NAME ?>);"></td>

<input type="hidden" name="act" value="">
<input type="hidden" name="fname" value="<? echo htmlspecialchars($_SESSION["vCardinfo"]["fname"]); ?>">
<input type="hidden" name="lname" value="<? echo htmlspecialchars($_SESSION["vCardinfo"]["lname"]); ?>">

<? include("template-footer.phtml"); ?>

For more information send a message to info at phpclasses dot org.