[xoops-cvslog 1965] CVS update: xoops2jp/html/modules/user/templates

Back to archive index

Minahito minah****@users*****
2006年 1月 26日 (木) 20:17:46 JST


Index: xoops2jp/html/modules/user/templates/user_avatar_upload.html
diff -u xoops2jp/html/modules/user/templates/user_avatar_upload.html:1.1.2.2 xoops2jp/html/modules/user/templates/user_avatar_upload.html:removed
--- xoops2jp/html/modules/user/templates/user_avatar_upload.html:1.1.2.2	Thu Jan 19 21:10:01 2006
+++ xoops2jp/html/modules/user/templates/user_avatar_upload.html	Thu Jan 26 20:17:46 2006
@@ -1,43 +0,0 @@
-<{if $actionForm->hasError()}>
-  <ul>
-    <{foreach item=message from=$actionForm->getErrorMessages()}>
-      <li><{$message|escape}></li>
-    <{/foreach}>
-  </ul>
-<{/if}>
-<form action="?action=AvatarUpload" method="post" enctype="multipart/form-data">
-  <{xoops_token form=$actionForm}>
-  <{xoops_input type=hidden name=uid value=$actionForm->getVar('uid')}>
-  <table class="outer" cellspacing="1">
-    <tr>
-      <th><{$smarty.const._MD_USER_LANG_AVATAR_WIDTH}></th>
-      <td class="odd">
-        <{$avatarWidth}>
-      </td>
-    </tr>
-    <tr>
-      <th><{$smarty.const._MD_USER_LANG_AVATAR_HEIGHT}></th>
-      <td class="odd">
-        <{$avatarHeight}>
-      </td>
-    </tr>
-    <tr>
-      <th><{$smarty.const._MD_USER_LANG_AVATAR_MAXFILESIZE}></th>
-      <td class="odd">
-        <{$avatarMaxfilesize}>
-      </td>
-    </tr>
-    <tr>
-      <th><{$smarty.const._MD_USER_LANG_AVATAR}></th>
-      <td class="odd">
-        <input type="file" name="uploadavatar" />
-      </td>
-    </tr>
-    <tr>
-      <th><{$smarty.const._MD_USER_LANG_CONTROL}></th>
-      <td class="foot">
-        <input type="submit" value="<{$smarty.const._SUBMIT}>" class="formButton" />
-      </td>
-    </tr>
-  </table>
-</form>
Index: xoops2jp/html/modules/user/templates/user_avatar_edit.html
diff -u /dev/null xoops2jp/html/modules/user/templates/user_avatar_edit.html:1.1.2.1
--- /dev/null	Thu Jan 26 20:17:46 2006
+++ xoops2jp/html/modules/user/templates/user_avatar_edit.html	Thu Jan 26 20:17:46 2006
@@ -0,0 +1,68 @@
+<{if $allowUpload}>
+<{if $actionForm->hasError()}>
+  <ul>
+    <{foreach item=message from=$actionForm->getErrorMessages()}>
+      <li><{$message|escape}></li>
+    <{/foreach}>
+  </ul>
+<{/if}>
+<form action="?action=AvatarUpload" method="post" enctype="multipart/form-data">
+  <{xoops_token form=$actionForm}>
+  <{xoops_input type=hidden name=uid value=$actionForm->getVar('uid')}>
+  <table class="outer" cellspacing="1">
+    <tr>
+      <th><{$smarty.const._MD_USER_LANG_AVATAR_WIDTH}></th>
+      <td class="odd">
+        <{$avatarWidth}>
+      </td>
+    </tr>
+    <tr>
+      <th><{$smarty.const._MD_USER_LANG_AVATAR_HEIGHT}></th>
+      <td class="odd">
+        <{$avatarHeight}>
+      </td>
+    </tr>
+    <tr>
+      <th><{$smarty.const._MD_USER_LANG_AVATAR_MAXFILESIZE}></th>
+      <td class="odd">
+        <{$avatarMaxfilesize}>
+      </td>
+    </tr>
+    <tr>
+      <th><{$smarty.const._MD_USER_LANG_AVATAR}></th>
+      <td class="odd">
+        <input type="file" name="uploadavatar" />
+      </td>
+    </tr>
+    <tr>
+      <th><{$smarty.const._MD_USER_LANG_CONTROL}></th>
+      <td class="foot">
+        <input type="submit" value="<{$smarty.const._SUBMIT}>" class="formButton" />
+      </td>
+    </tr>
+  </table>
+</form>
+<{/if}>
+
+<form action="index.php?action=AvatarSelect" method="POST">
+  <{xoops_token form=$avatarSelectForm}>
+  <{xoops_input type=hidden name=uid value=$avatarSelectForm->get('uid')}>
+  <table class="outer" cellspacing="1">
+    <{foreach item=obj from=$systemAvatars}>
+      <tr class="<{cycle values='odd,even'}>">
+        <td>
+          <img src="<{$smarty.const.XOOPS_UPLOAD_URL}>/<{$obj->getVar('avatar_file')}>" />
+        </td>
+        <td>
+          <{$obj->getVar('avatar_name')}>
+        </td>
+        <td>
+          <input name="avatar_id[<{$obj->getVar('avatar_id')}>]" type="submit" value="<{$smarty.const._MD_USER_LANG_SELECT}>" />
+        </td>
+      </tr>
+    <{/foreach}>
+  </table>
+</form>
+<br />
+<div style="text-align:center;"><{xoops_pagenavi pagenavi=$pageNavi}></div>
+


xoops-cvslog メーリングリストの案内
Back to archive index