Location: PHPKode > projects > Tagging manager > version 1.02/template/default/data.tpl
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE><?=$lang['websitetitle'];?> :: <?=$username;?></TITLE>
<meta name="Author" content="FGov">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Copyright" content="Deze pagina en zijn style sheet vallen onder de Creative Commons License">
<link href="template/default/styles/master.css" rel="stylesheet" type="text/css">
<link rel="StyleSheet" href="template/default/styles/dtree.css" type="text/css">
<meta name="robots" content="all">
<?=$javascripts;?>
<script type="text/javascript">
	
	function addtax(taxonomy) {
                document.metadata.taxonomy.value=taxonomy;
              }
              
	function addtag(tag) {
		document.metadata.keywords.value+=tag+"<?=$seperator;?> ";
}
	function hide(id) {
		target = document.getElementById(id);
		target.style.display='none';
		}
		
	function datefill() {
var today = new Date()
var month = today.getMonth() + 1
var day = today.getDate()
var year = today.getFullYear()
var s = "/"

document.metadata.datum.value = day + s + month + s + year;
}

</script>

</head>

<body onLoad="datefill();">
<!-- START user login -->
<div style="text-align: right;"><?=$username;?> | <a href="logout.php">Logout</a></div>
<!-- END user login -->


<div id="container">

<!-- START top corners -->
<div><b class="spiffy"><b class="spiffy2"></b><b class="spiffy3"></b><b class="spiffy4"></b><b class="spiffy5"></b></b></div>
<div class="spiffy_content">
<!-- END top corners -->
<strong><?=$lang['documentdetails'];?></strong><br>
 <form name="metadata" method="post" action="process.php">
        <table width="90%" border="0" cellpadding="2" cellspacing="1">
          <tbody>
            <tr>
              <td><?=$lang['url'];?></td>

              <td class="cellen"><input name="url" type="text" id="url" value="<?=$url;?>" size="77">
              </td>
            </tr>
            <tr>
              <td><?=$lang['title'];?></td>

              <td class="cellen"><input name="title" type="text" id="title" value="<?=$title;?>" size="77"></td>
            </tr>
            <tr>
              <td><?=$lang['description'];?><br></td>
              <td class="cellen"><textarea name="description" cols="60" rows="3"><?=$meta_descr;?></textarea></td>
            </tr>
            <tr>

              <td><?=$lang['keywords'];?></td>
              <td class="cellen"><textarea name="keywords" cols="60" rows="2">
<? if ($link_taglist) {foreach($link_taglist as $tag){
echo $tag . " ";
}} ?>
</textarea>
              </td>
            </tr>
<!-- BEGIN tag suggestions -->
<? if ($arrayTags) { ?>
<tr><td><?=$lang['suggestions']?></td><td class='cellen' style='line-height: 150%'>
<? foreach($arrayTags as $tag){
if (strlen($tag) > 2 AND strlen($tag) < 20) echo "<span id=\"$tag\" class=\"high\" onClick=\"addtag('$tag')\">".$tag."</span>  ";
} ?>
</td></tr>
<? } ?>
<!-- END tag suggestions -->

<!-- BEGIN snipset -->
<? if ($snipset) { ?>
<tr><td><?=$lang['snipset']?></td><td class='cellen' style='line-height: 150%'><textarea name='snipset' cols='60' rows='3'>
<?=$snipset;?>
</textarea></td></tr>
<? } ?>
<!-- END snipset -->
<tr><td><?=$lang['updated'];?></td>
<td><table width="100%"  border="0" cellpadding="2" cellspacing="1">
                <tr>
                  <td width="31%" valign="top">                      <input name="datum" type="text" id="datum" size="10" maxlength="10">
                  <img src="img/calendar.png" alt="datepicker" width="16" height="16" class="datepicker" onClick="window.open('datepicker.php','datepicker','width=220,height=190')"></td>
                  <td width="69%" valign="top" class="cellen"><?=$lang['author'];?>
                      <input name="author" type="text" id="author" value="<?=$author;?>" maxlength="250"></td>
                </tr>
              </table></td></tr>
<? if ($captcha) { ?>
 <tr>
              <td>&nbsp;</td>
              <td>
              <hr size="1" noshade></td>
            </tr>
            <tr>
              <td><span class="cellen"><img src="captcha.php" alt="Captcha" /></span></td>
              <td valign="middle" class="cellen"><?=$lang['captcha'];?>
			  <input name="code" type="text" size="5" maxlength="3" />
			  </td>
            </tr>
<? } ?>
    
            <tr>
              <td>&nbsp;</td>
              <td><hr size="1" noshade></td>
            </tr>
            <tr>
              <td valign="top"><?=$lang['extra'];?></td>
              <td>             
                <table width="100%"  border="0" cellpadding="2" cellspacing="1">
                <tr>
                  <td width="50%" valign="top" bgcolor="#FFFFFF" class="tabelrandje"><select name="taxonomy" id="taxonomy">
 <!-- START categories -->
    <? $tax = new iter("SELECT * FROM `tm_taxonomy`"); // get tax from db
$tax2 = new iter("SELECT * FROM `tm_taxonomy`"); // get tax from db
 while ($item = $tax->fetch()) {
$taxonomy = $item->taxonomy;
    $taxid = $item->taxonomy_id;
    $parentid = $item->parentid;
    if ($taxselected == $taxid) {
    	$selected = "selected";
    	} else {
    		$selected = "";
    		}
    echo "<option $selected value=$taxid>$taxonomy</option>";
    }
    ?>
                </select><br>
				  
				  <script type="text/javascript">
		<!--

		d = new dTree('d');
  d.add(0,-1,'taxonomy');

    <? 
while ($item2 = $tax2->fetch()) {
    $taxonomy = $item2->taxonomy;
    $taxid = $item2->taxonomy_id;
    $parentid = $item2->parentid;
    echo "d.add($taxid,$parentid,'$taxonomy','$taxid');";
    }
    ?>
		document.write(d);

		//-->
	</script>
</td>
                  <td width="50%" valign="top" class="cellen">
                  				    				  <div align="right">
                  				    				      <p>
                  				    				        <?=$dynform;?>
       				                                    </p>
               				    				      </div>
                  				    				  <p class="cellen">
                  				    				    
                  				  
                    
				                                      </p></td>
                </tr>
              </table></td>
            </tr>
               <tr>
              <td>&nbsp;</td>
              <td><hr size="1" noshade></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td> 
			  	    <input type="hidden" name="_submit_check" value="1">
 					<input type="hidden" name="user_id" value="<?=$userid;?>"> 
					<input type="hidden" name="action" value="<?=$action;?>">
 					<input type="hidden" name="meta_id" value="<?=$meta_id;?>"> 
 					<input type="hidden" name="redirect" value="<?=$redirect;?>">
                	<input name="Submit" type="submit" class="buttonthing" value="<?=$button;?>"> 
					
              <a href="<?=$archivelink;?>" target="_BLANK"><?=$lang['savearchive'];?></a> <?=$deletefield;?>
              </td>
            </tr>
          </tbody>
        </table>
	</form>
		<br>
<!-- START bottom corners -->	
  </div>
    <div ><b class="spiffy"><b class="spiffy5"></b><b class="spiffy4"></b><b class="spiffy3"></b><b class="spiffy2"></b><b class="spiffy1"></b></b> </div>
<!-- END bottom corners -->



</div>
</body>
</html>
Return current item: Tagging manager