Changeset 4377

Show
Ignore:
Timestamp:
Fri Jan 20 18:48:15 2006
Author:
mugur
Message:

fixed ticket:1655 - Provide confirmation on template save

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/campsite/implementation/management/priv/lang/ro/templates.php

    r4160 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "");  
    3 4 regGS("The folder could not be deleted.", "Directorul nu poate fi şters");  
  • trunk/campsite/implementation/management/priv/lang/zh/templates.php

    r4160 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "");  
    3 4 regGS("The folder could not be deleted.", "文件夹不能删除");  
  • trunk/campsite/implementation/management/priv/lang/ar/templates.php

    r4160 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "القالب  1$ في حالة الاستخدام ولا يمكنت حذفه");  
    3 4 regGS("The folder could not be deleted.", "لا يمكن حذف المجلد");  
  • trunk/campsite/implementation/management/priv/lang/en/templates.php

    r4160 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "The template '$1' was saved successfully.");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "The template $1 is in use and can not be deleted.");  
    3 4 regGS("The folder could not be deleted.", "The folder could not be deleted.");  
  • trunk/campsite/implementation/management/priv/lang/pt/templates.php

    r4292 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "O modelo $1 está a ser usado e não pode ser eliminado.");  
    3 4 regGS("The folder could not be deleted.", "A pasta não pode ser eliminada");  
  • trunk/campsite/implementation/management/priv/lang/at/templates.php

    r4307 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "Die Template $1 wird benutzt und kann nicht gelöscht werden.");  
    3 4 regGS("The folder could not be deleted.", "Ordner konnte nicht gelöscht werden");  
  • trunk/campsite/implementation/management/priv/lang/sr/templates.php

    r4250 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "Шаблон $1 је у употреби и не може бити обрисан.");  
    3 4 regGS("The folder could not be deleted.", "Фолдер не може бити избрисан");  
  • trunk/campsite/implementation/management/priv/lang/ru/templates.php

    r4291 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "Шаблон $1 используется и не может быть удален");  
    3 4 regGS("The folder could not be deleted.", "Папка не может быть удалена.");  
  • trunk/campsite/implementation/management/priv/lang/es/templates.php

    r4271 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "El template $1 está en uso y no puede eliminarse.");  
    3 4 regGS("The folder could not be deleted.", "El directorio no pudo ser borrado");  
  • trunk/campsite/implementation/management/priv/lang/fr/templates.php

    r4160 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "");  
    3 4 regGS("The folder could not be deleted.", "");  
  • trunk/campsite/implementation/management/priv/lang/de/templates.php

    r4306 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "Die Template $1 wird benutzt und kann nicht gelöscht werden.");  
    3 4 regGS("The folder could not be deleted.", "Ordner konnte nicht gelöscht werden");  
  • trunk/campsite/implementation/management/priv/lang/hr/templates.php

    r4160 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "");  
    3 4 regGS("The folder could not be deleted.", "Mapa se ne može brisati");  
  • trunk/campsite/implementation/management/priv/lang/sh/templates.php

    r4251 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "Šablon $1 je u upotrebi i ne može biti obrisan.");  
    3 4 regGS("The folder could not be deleted.", "Folder ne može biti izbrisan");  
  • trunk/campsite/implementation/management/priv/lang/cz/templates.php

    r4160 r4377  
    1 1 <?php  
      2 regGS("The template '$1' was saved successfully.", "");  
    2 3 regGS("The template $1 is in use and can not be deleted.", "");  
    3 4 regGS("The folder could not be deleted.", "Složka nemohla být smazána");  
  • trunk/campsite/implementation/management/priv/templates/edit_template.php

    r4210 r4377  
    34 34 $crumbs[] = array(getGS("Edit template").": $Name", "");  
    35 35 echo camp_html_breadcrumbs($crumbs);  
      36  
      37 $res = Input::Get('res', 'string', 'OK');  
      38 $resMsg = Input::Get('resMsg', 'string', '');  
      39  
    36 40 ?>  
    37 41  
      42 <?php if ($resMsg != '') { ?>  
      43 <p>  
      44 <table border="0" cellpadding="0" cellspacing="0" class="action_buttons">  
      45 <tr>  
      46 <?php if ($res == 'OK') { ?>  
      47     <td class="info_message">  
      48 <?php } else { ?>  
      49     <td class="error_message">  
      50 <?php } ?>  
      51         <?php echo $resMsg; ?>  
      52     </td>  
      53 </tr>  
      54 </table>  
      55 </p>  
      56 <?php } ?>  
      57  
    38 58 <P>  
    39 59 <FORM NAME="dialog" METHOD="POST" ACTION="do_edit.php"  >  
     
    43 63 <TR>  
    44 64     <TD COLSPAN="2">  
    45           <B><?php  putGS("Edit template"); ?></B>  
    46           <HR NOSHADE SIZE="1" COLOR="BLACK">  
    47       </TD>  
    48   </TR>  
    49   <TR>  
    50       <TD COLSPAN="2">  
    51 65     <DIV ALIGN="CENTER">  
    52 66     <?php  if ($User->hasPermission("DeleteTempl")) { ?>  
    61 75  
    62 76 <TR>  
    63       <TD><TEXTAREA ROWS="25" COLS="85" NAME="cField" WRAP="NO"><?php  p($contents) ?></TEXTAREA></TD>  
      77     <TD><TEXTAREA ROWS="25" COLS="90" NAME="cField" WRAP="NO"><?php  p($contents) ?></TEXTAREA></TD>  
    63 77 </TR>  
    64 78  
  • trunk/campsite/implementation/management/priv/templates/do_edit.php

    r4210 r4377  
    34 34     $logtext = getGS('Template $1 was changed', $Path."/".$Name);  
    35 35     Log::Message($logtext, $User->getUserName(), 113);  
    36       header("Location: /$ADMIN/templates/edit_template.php?Path=".urlencode($Path)."&Name=".urlencode($Name));  
      36     header("Location: /$ADMIN/templates/edit_template.php?Path=".urlencode($Path)  
      37             ."&Name=".urlencode($Name)."&res=OK"  
      38             ."&resMsg=".urlencode(getGS("The template '$1' was saved successfully.", $Name)));  
    37 39     exit;  
    38 40 } else {  
    52 54 <TR>  
    53 55     <TD COLSPAN="2">  
    54           <B> <?php  putGS("Edit template"); ?> </B>  
    55           <HR NOSHADE SIZE="1" COLOR="BLACK">  
    56       </TD>  
    57   </TR>  
    58   <TR>  
    59       <TD COLSPAN="2">  
    60 56         <BLOCKQUOTE> <LI><?php echo $errMsg; ?></LI> </BLOCKQUOTE>  
    61 57     </TD>