Ver Mensaje Individual
  #11 (permalink)  
Antiguo 11/04/2005, 03:15
Dannydaniel
 
Fecha de Ingreso: diciembre-2004
Mensajes: 85
Antigüedad: 19 años, 4 meses
Puntos: 0
Envio los dos archivos que se utilizan, los demas index, son paracidos en el envio de datos de la variables que deben presentar.

Index.php

<?php
$opc=a;
include ("parame.php");
?>

<html>

<head><TITLE>
<?php
echo $titulo;
?>
</TITLE></head>

<link rel="stylesheet" type="text/css" href="CSS/style.css" />

<body onload="init()">
<script type="text/javascript" language="javascript" src="JS/index.js" ></script>

<div id="container">
<div id="header">
<div id="header_left"><div style="background:url('./Icons/RDF-Metadata.png') no-repeat right top; float:right;width:200px;; height:90%;position:relative;top:+35px;"></div>
</div>

<div id="header_right" >
<div style="background:url('./Icons/logo.gif') no-repeat left top; float:right;width:200px;; height:100%;position:relative;top:+2px;"></div>
</div>

</div>

<div>
<?
echo $part1;
echo $part2;
?>
</div>

<div style="font-size:8pt;padding-top:0px;">

<div style="font-size:8pt;padding-top:0px;margin-left:120px;">

<?php
#ini_set('display_errors', 'On');
include_once('class.breadcrumb.inc.php');
$breadcrumb = new breadcrumb;
$breadcrumb->homepage='homepage'; // sets the home directory name
$breadcrumb->dirformat='ucfirst'; // Show the directory in this style
$breadcrumb->symbol=' || '; // set the separator between directories
$breadcrumb->showfile=TRUE; // shows the file name in the path
$breadcrumb->linkFile=TRUE; // Link the file to itself
$breadcrumb->_toSpace=TRUE; // converts underscores to spaces
echo $breadcrumb->show_breadcrumb();

echo "<a href='index2.php'>";
echo "Pagina di prova.";
echo "</a>";
echo "<p>";

?>
</div>
</div>

<div id="pannello">

<form method="post" name="entrega" action="parame.php">
<select name="opc" onchange="this.form.submit()">
<option value="" selected="selected">[seleccione una opción]</option>
<option value="a" >PeC</option>
<option value="b" >Prueba</option>
<option value="c" >Documentation</option>
<option value="d" >Database</option>
</select>
</form>

<div id="searchpanel">
<div style="margin-left:10px;float:left; width: 48; height: 48; filter:progid:DXImageTransform.Microsoft.AlphaImag eLoader(src='Icons/48_add_contact.png', sizingMethod='scale');" ></div>
<div style="font-size:10pt;padding-top:10px;">Search:<input name="criterio" style="width:150px;font-size:9pt; " onkeyup="refreshlist()" ></input></div>
<br/>
<div id="filter"></div>
<select id="listhtmlBOX" name="htmllist" multiple style="margin-left:40px;height:310px; width:230px;font-size:8pt; " ></select>
<br/>
<img src="Icons/expand.gif" style="margin-left:50px;" onClick="window.search(htmllist.options(htmllist.s electedIndex).value)" ></img>
</div>


<div id="detailpanel" style="; padding-top:20px;padding-left:30px;" align="left">
<div id="fordetail" ></div>
<div id="forrelation" style="font-size:8pt;" ></div>
</div>

<div style="position:absolute;left:289px; top:-4px">
<img src="Icons/croce.gif" width="15" onclick="large()" />
</div>


<div id="updatepanel">
<div style="font-size:16;font-weight:bold;">Management of Data Source Rdf</div>
<div id="Title">Add / Update a Resource</div>
<div style="font-size:11">Please insert the URI which the Resource is present</div>
<div style="font-size:10">
<input type="text" style="width:200px;" name="URI_update" />
<input type="button" value="Submit" multiple name="uriupdt" onclick="window.open('php/update.php?URI=' + URI_update.value, 'update', 'height=400,width=400,status=no,toolbar=no,menubar =no,location=no')" />
</div>
<div id="title">Rdf - Generator</div>
<div style="font-size:11">To help the creation of the Rdf, we have builded a generator of code XML. Click over the preferred link</div>
<div style="font-size:11">
<div><a href="javascript:" onclick="window.open('foafgenerator.php')">Foaf Generator</a> </div>
<div><a href="javascript:" onclick="window.open('groupgenerator.php')">Group Generator</a> </div>
<div><a href="javascript:" onclick="window.open('competencegenerator.php')">C ompetence Generator</a> </div>
</div>
</div>
</div>

<div id="grafica" style="display:block">
<EMBED id="svg1" width="90%" height="95%" type="image/svg+xml" SRC="Svg/navigator.svg" NAME="mappa" ></EMBED>
</div>


</div>
</body>
</html>




Parame.php
<?php


echo $opc;


switch ($_post['opc']) {

//switch ($opc) {
case 'a':
$path = "http://pcm3080.dti.supsi.ch/Php/SUPSI/navigator/";
$titulo="Resource Navigator - PeC Navigator";
$part1= "<div style='top:-4px;position:absolute; left:30px;font-size:20pt;color:#DDF'><i>Resource Navigator - <small>PeC Navigator (PeC)</small></i></div>";
$part2= "<div style='top:30px;position:absolute; left:50;font-size:15pt;color:#BBf'><i>Semantic Web Application</i></div>";
$part3= "<div style='top:30px;position:absolute; left:30;font-size:10pt;color:#BBf'><i>Person and Competencies Navigator</i></div>";
$part4= "<div style='top:4px;position:absolute; left:30;font-size:19pt;color:#DDF'><i>PeC Navigator (PeC) </i></div>";

header("location:".$path."index.php?titulo=".urlen code($titulo)."&part1".urlencode($part1)."&part2". urlencode($part2)."&part3".urlencode($part3)."&par t4".urlencode($part4));
echo $path;
exit;
break;



case 'b':
$path = "http://pcm3080.dti.supsi.ch/Php/SUPSI/navigator/";
$titulo ="prueba - Danny Anton";
$part1= "<div style='top:-4px;position:absolute; left:30px;font-size:20pt;color:#DDF'><i>Questa è una foglia di Prova - <small>Danny Anton</small></i></div>";
$part2= "<div style='top:30px;position:absolute; left:50;font-size:15pt;color:#BBf'><i>Semantic Web 2</i></div>";
$part3= "<div style='top:30px;position:absolute; left:30;font-size:10pt;color:#BBf'><i>Person and Competencies Navigator</i></div>";
$part4= "<div style='top:4px;position:absolute; left:30;font-size:19pt;color:#DDF'><i>PeC Navigator (PeC) </i></div>";

//header("location:index2.php");
header("location:".$path."index2.php?titulo=".urle ncode($titulo)."&part1".urlencode($part1)."&part2" .urlencode($part2)."&part3".urlencode($part3)."&pa rt4".urlencode($part4));
exit;

break;

case 'c':
print "i equals 2";
break;

}
?>

Saludos