Ver Mensaje Individual
  #14 (permalink)  
Antiguo 03/06/2003, 11:47
Sitotito
 
Fecha de Ingreso: junio-2002
Mensajes: 77
Antigüedad: 21 años, 9 meses
Puntos: 0
Mira esta es la plantilla despues de hacer modificaciones con el word:

Código PHP:
<?php

if (!eregi("modules.php"$PHP_SELF)) {
    die (
"No puedes acceder directamente a este archivo");
}



$module_name basename(dirname(__FILE__));
$index 1;

  include(
"header.php");
  
OpenTable();
?>
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./Copia%20de%20index_archivos/filelist.xml">
<link rel=Edit-Time-Data href="./Copia%20de%20index_archivos/editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Untitled Document</title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>.</o:Author>
  <o:LastAuthor>.</o:LastAuthor>
  <o:Revision>2</o:Revision>
  <o:TotalTime>0</o:TotalTime>
  <o:Created>2003-06-03T16:55:00Z</o:Created>
  <o:LastSaved>2003-06-03T16:55:00Z</o:LastSaved>
  <o:Pages>1</o:Pages>
  <o:Characters>5</o:Characters>
  <o:Company>.</o:Company>
  <o:Lines>1</o:Lines>
  <o:Paragraphs>1</o:Paragraphs>
  <o:CharactersWithSpaces>6</o:CharactersWithSpaces>
  <o:Version>9.2812</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:HyphenationZone>21</w:HyphenationZone>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
    {mso-style-parent:"";
    margin:0cm;
    margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:12.0pt;
    font-family:"Times New Roman";
    mso-fareast-font-family:"Times New Roman";}
@page Section1
    {size:595.3pt 841.9pt;
    margin:70.85pt 3.0cm 70.85pt 3.0cm;
    mso-header-margin:35.4pt;
    mso-footer-margin:35.4pt;
    mso-paper-source:0;}
div.Section1
    {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=ES style='tab-interval:35.4pt'>

<div class=Section1>

<table border=1 cellspacing=0 cellpadding=0 width="71%" style='width:71.0%;
 mso-cellspacing:0cm;border:outset #CCFFFF 3.0pt' height=619
 bordercolorlight="#3333FF" bordercolordark="#9999FF">
 <tr>
  <td style='border:inset #CCFFFF .75pt;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
   coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
   filled="f" stroked="f">
   <v:stroke joinstyle="miter"/>
   <v:formulas>
    <v:f eqn="if lineDrawn pixelLineWidth 0"/>
    <v:f eqn="sum @0 1 0"/>
    <v:f eqn="sum 0 0 @1"/>
    <v:f eqn="prod @2 1 2"/>
    <v:f eqn="prod @3 21600 pixelWidth"/>
    <v:f eqn="prod @3 21600 pixelHeight"/>
    <v:f eqn="sum @0 0 1"/>
    <v:f eqn="prod @6 1 2"/>
    <v:f eqn="prod @7 21600 pixelWidth"/>
    <v:f eqn="sum @8 21600 0"/>
    <v:f eqn="prod @7 21600 pixelHeight"/>
    <v:f eqn="sum @10 21600 0"/>
   </v:formulas>
   <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
   <o:lock v:ext="edit" aspectratio="t"/>
  </v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:111pt;
   height:99.75pt'>
   <v:imagedata src="./Copia%20de%20index_archivos/image001.wmz" o:title="PE03254_"/>
  </v:shape><![endif]--><![if !vml]><img width=148 height=133
  src="./Copia%20de%20index_archivos/image002.gif" v:shapes="_x0000_i1025"><![endif]></p>
  </td>
 </tr>
 <tr>
  <td style='border:inset #CCFFFF .75pt;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>
  </td>
 </tr>
</table>

<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

</div>

</body>

</html>
<?
  CloseTable
();
  include(
"footer.php");




?>

Si hago el $archivo=ereg_replace......... me modifica el codigo q esta metido en la cadena $archivo y al imprimir me saldria ya bien con las cosas q quiero quitadas pero debajo de esto saldria el codigo inicial sin remplazar por lo q tendria dos cosas iguales, por eso es lo de borrar parte del codigo pa q me borre lo segundo, pero no se si existe a ver si tu me puedes ayudar