Rev Author Line No. Line
228 kaklik 1 <h1><?php echo $sg->translator->_g("Move or Copy Items") ?></h1>
2  
3 <form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
4 <input type="hidden" name="action" value="multimove" />
5 <input type="hidden" name="gallery" value="<?php echo $sg->gallery->idEntities() ?>" />
6 <?php
7 if(isset($_REQUEST["sgGalleries"]))
8 foreach($_REQUEST["sgGalleries"] as $name => $value)
9 echo "<input type=\"hidden\" name=\"sgGalleries[$name]\" value=\"$value\" />\n";
10 elseif(isset($_REQUEST["sgImages"]))
11 foreach($_REQUEST["sgImages"] as $name => $value)
12 echo "<input type=\"hidden\" name=\"sgImages[$name]\" value=\"$value\" />\n";
13 ?>
14 <p>Select the gallery to which you wish to move or copy the selected items.</p>
15  
16 <p><select name="sgMoveTarget">
17 <?php
18 foreach($sg->allGalleriesArray() as $gal)
19 //if(strpos($gal->id, $sg->gallery->id) !== 0)
20 echo '<option value="'.$gal->idEntities().'">'.$gal->idEntities()." (".$gal->name().")</option>\n";
21 ?>
22 </select></p>
23 <p>
24 <label><input type="radio" name="sgMoveType" value="copy" checked="true" /> <?php /*"*/ echo $sg->translator->_g("Copy") ?></label>
25 <label><input type="radio" name="sgMoveType" value="move" /> <?php /*"*/ echo $sg->translator->_g("Move") ?></label>
26 </p>
27 <p><input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|OK") ?>">
28 <input type="submit" class="button" name="confirmed" value="<?php /*"*/ echo $sg->translator->_g("confirm|Cancel") ?>"></p>
29 </form>