#1 (permalink)  
Alt 22.09.2004, 22:17
xt:C Sponsor
 
Registriert seit: 10.02.2004
Beiträge: 5
Standard

Excuse for my English. Today has made for itself " templates upgrade tool ".For comparison of variables such as " {$TemplateVars} ".
While only for local. I shall soon make the advanced version.
Will consist of two files: form.html and script.php
Start a file form.html. Files should is in one catalogue.
Templates Compare(upgrade?) Tool V0.01

form.html :
Code:
<html><head><title></title></head>
<form name="form1" action="script.php" method="post">
<input type="file" name="file1"><input type="file" name="file2">
<div align="center"><br></div>
<input type="submit" value="go!">
</form>
</body></html>
script.php :
Code:
<html><head><title></title></head><body>
<?php
$a1 = array();
$a2 = array();
foreach(file($_POST["file1"]) as $value) {
 preg_match_all("/(\{\\$.*\})/sU",$value,$array);
 foreach($array[1] as $v1)
 $a1[] = $v1;
}
foreach(file($_POST["file2"]) as $value) {
 preg_match_all("/(\{\\$.*\})/sU",$value,$array);
 foreach($array[1] as $v1)
 $a2[] = $v1;
}
$a1 = array_unique($a1);
$a2 = array_unique($a2);
sort($a1);
sort($a2);
?>
<table border="1" width="100%" id="table1">
    <tr>
     <td><?php foreach($a1 as $v2) echo $v2 . '<br>'; ?></td>

     <td><?php foreach($a2 as $v2)echo $v2.'<br>'; ?></td>
    </tr>
    <tr>
     <td><br><b><font color=#FF0000>No more use in <br><small><?php echo str_replace('\\\\','\\',$_POST["file1"]) ?>:</small></font></b><br><br><?php foreach(array_diff($a1,$a2) as $b) echo $b . '<br>'; ?></td>

     <td><b><font color=#0000FF>New in <br><small><?php echo str_replace('\\\\','\\',$_POST["file2"]) ?> :</small></font></b><br><br><?php foreach(array_diff($a2,$a1) as $b) echo $b . '<br>'; ?></td>
    </tr>
</table>
</body></html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 22.09.2004, 22:26
Benutzerbild von mzanier
xt:Commerce GmbH, Geschäftsführung
 
Registriert seit: 18.04.2003
Beiträge: 27.382
Standard

nice one. ill pinn it.
__________________
xt:Commerce Helpdesk
xt:Commerce Blog

xt:Commerce Warenwirtschaft

###

Offene Stellen bei xt:Commerce!
xt:Commerce stellt ein
###
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 22.09.2004, 23:18
Benutzerbild von webkasper
Erfahrener Benutzer
 
Registriert seit: 08.09.2003
Beiträge: 544
Standard

:grml: int:

... ?hem, kann mir einer mal auf die Spr?nge helfen, ich check dat nicht ganz, jetzt nicht das es an dem englisch liegen w?rde, oder doch ?
... oder sollte ich weniger saufen beim basteln ??? :grml:

Na, wie dem auch sei, wers gecheckt hat, kanns ja mal hier auf verst?ndliche Art und weise posten, hilft bestimmt nicht nur mir weiter ;-)

der webkasper
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 22.09.2004, 23:26
Benutzerbild von mzanier
xt:Commerce GmbH, Geschäftsführung
 
Registriert seit: 18.04.2003
Beiträge: 27.382
Standard

du hast template A aus version 3.0 und template A aus version 3.0.9 =)

startest das formular, und es zeigt die an welche tags in 3.0.9 hinzugekommen sind und du nun in deinem tpl einf?gen musst/kannst.
__________________
xt:Commerce Helpdesk
xt:Commerce Blog

xt:Commerce Warenwirtschaft

###

Offene Stellen bei xt:Commerce!
xt:Commerce stellt ein
###
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #5 (permalink)  
Alt 22.09.2004, 23:31
Benutzerbild von webkasper
Erfahrener Benutzer
 
Registriert seit: 08.09.2003
Beiträge: 544
Standard

merci cheffe :i:


... jo, ist schon klar das mit den Templates aus 3.0 und 3.09 :grml:

aber wohin schmei? ich die beiden Dateien (form.html / script.php), ist des wurscht oder wie ?

der web(sauf)kasper
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #6 (permalink)  
Alt 23.09.2004, 00:25
Benutzerbild von mzanier
xt:Commerce GmbH, Geschäftsführung
 
Registriert seit: 18.04.2003
Beiträge: 27.382
Standard

irgendwohin in ein verzeichnis
__________________
xt:Commerce Helpdesk
xt:Commerce Blog

xt:Commerce Warenwirtschaft

###

Offene Stellen bei xt:Commerce!
xt:Commerce stellt ein
###
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #7 (permalink)  
Alt 23.09.2004, 15:50
xt:C Sponsor
 
Registriert seit: 10.02.2004
Beiträge: 5
Standard

new v0.02
Has added new possibility - shows number (or numbers) to a line.
For example:
Code:
{$BANNER} (209)
{$tpl_path} (6,19)
Download here:
Windows:
http://www2.polon.uw.edu.pl/kolopol/Smarty...010-Windows.exe

Multi-platform:
http://www2.polon.uw.edu.pl/kolopol/SmartyTool_010.jar

Button "Save" not work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #8 (permalink)  
Alt 10.04.2008, 01:25
Neuer Benutzer
 
Registriert seit: 10.04.2008
Beiträge: 2
Standard

Nice one.. thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
smarty, tool, v010

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus



Alle Zeitangaben in WEZ +1. Es ist jetzt 01:05 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand