PHP Classes

File: template-header.phtml

Recommend this page to a friend!
  Classes of Slava Ivanov  >  vCard Class  >  template-header.phtml  >  Download  
File: template-header.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: 16 years ago
Size: 1,547 bytes



Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    <title><? echo $title ?></title>
    <link rel="stylesheet" type="text/css" href="vcard.css">
<script language="JavaScript">
function dosubmit(varact, f)
    f.act.value = varact;
function dochecksubmit(varact, f)
    var phrase;
    if (varact == "deleteit")
        phrase = "Are you sure you want to delete vCard?";
    if (varact == "cancelit")
        phrase = "Are you sure you want to cancel your changes?";
    if (confirm(phrase)) {
        f.act.value = varact;
        f.action = "index.phtml";
function dosave(varact, f)
    if (f.fname.value != "" || f.lname.value != "") {
        f.act.value = varact;
    } else {
        alert("To save vCard information you MUST complete at least First or Last Name fields on Personal bookmark.");
        dosubmit("personal", f);


<body bgcolor="#ffffff" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"<? if ($onload) echo " onLoad=\"".$onload."\"" ?>>

<table bgcolor="#545454" width="485" cellspacing="0" cellpadding="0" margin="0" border="0" align="center">
<td width="259"><b><font face="verdana,arial" size="4" color="#e5e5e5">E-witness Inc.</font></b>&nbsp;</td>
<td align="right"><b><font face="verdana,arial" size="4" color="#e5e5e5"><? echo $title ?></font></b>&nbsp;&nbsp;&nbsp;</td>
<td colspan="2" bgcolor="#000000"><img src="images/spacer.gif" width="1" height="2"></td>