[Affelio-cvs 1207] CVS update: affelio/apps/diary/templates

Back to archive index

Yoshihisa Fukuhara higef****@users*****
2006年 4月 6日 (木) 00:59:40 JST


Index: affelio/apps/diary/templates/admin_menu.tmpl
diff -u affelio/apps/diary/templates/admin_menu.tmpl:1.2 affelio/apps/diary/templates/admin_menu.tmpl:1.3
--- affelio/apps/diary/templates/admin_menu.tmpl:1.2	Wed Mar  1 14:40:36 2006
+++ affelio/apps/diary/templates/admin_menu.tmpl	Thu Apr  6 00:59:40 2006
@@ -8,6 +8,7 @@
 <div class="afAdminMenu">
 <UL>
 <LI><A HREF="./admin.cgi"><AF_M text='Write a diary'></A></LI>
+<LI><A HREF="./admin.cgi?mode=list_diary"><AF_M text='Entry index'></A></LI>
 <LI><A HREF="./admin.cgi?mode=edit_category"><AF_M text='Edit categories'></A></LI>
 <LI><A HREF="<TMPL_VAR NAME="access_control_URL">" target="_blank"><AF_M text='Access control'></A></LI>
 <LI><A HREF="./admin.cgi?mode=pref_set"><AF_M text='General settings'></A></LI>
Index: affelio/apps/diary/templates/write_diary_confirm.tmpl
diff -u affelio/apps/diary/templates/write_diary_confirm.tmpl:1.11 affelio/apps/diary/templates/write_diary_confirm.tmpl:1.12
--- affelio/apps/diary/templates/write_diary_confirm.tmpl:1.11	Wed Mar  1 14:40:36 2006
+++ affelio/apps/diary/templates/write_diary_confirm.tmpl	Thu Apr  6 00:59:40 2006
@@ -1,42 +1,25 @@
-<form method="post" action="write_diary.cgi" enctype="multipart/form-data">
+<form method="post" action="index.cgi">
+
 <div class="afPubContentHeading">
 <table border="0" cellspacing="0">
-<tr><td align="left"><AF_M text="Confirm your article">
-</td></tr></table>
-</div>
-<br>
+<tr><td align="left">
+<AF_M text="Do you realy want to delete this article?">
+</td></tr>
+</table>
+</div><!-- afPubContentHeading -->
+
 <div class="afPubContent">
 <div class="afPubContentBlock">
-<div class="afPubContentBlockTitle">
-<TMPL_VAR NAME="TITLE_SHOW">
-</div>
-<div class="afAppDiaryDate"><TMPL_VAR NAME="MONTH">/<TMPL_VAR NAME="DAY"></div>
-<div class="afAppDiaryCategory">
-<TMPL_VAR NAME="CATEGORY_NAME">
+<div class="afPubContentBlockContent">
+<input type="hidden" name="mode" value="write_diary">
+<input type="hidden" name="id" value="<TMPL_VAR NAME="ID">">
+<input type="hidden" name="action" value="update">
+<input type="submit" name="delete" value="<AF_M text='Delete'>" />
 </div>
-<br>
-<div class="afAppDiaryText">
-<TMPL_VAR NAME="CONTENTS_SHOW">
-<br>
-<br>
-<br>
-<TMPL_IF NAME="TPING">
-<b><AF_M text="Trackback Ping"></b><br>
-<TMPL_VAR NAME="TPING"></TMPL_IF>
+
 </div>
-<br>
-<br>
-<br>
-<input type="hidden" name="title" value="<TMPL_VAR ESCAPE='HTML' NAME='TITLE'>">
-<input type="hidden" name="contents" value="<TMPL_VAR ESCAPE='HTML' NAME='CONTENTS'>">
-<TMPL_IF NAME="TPING">
-<input type="hidden" name="tping" value="<TMPL_VAR NAME='TPING'>">
-</TMPL_IF>
-<input type="submit" name="submit" value="<AF_M text='Add'>">
-<input type="submit" name="noname" value="<AF_M text='Modify'>">
 </div>
-<br>
 
-</div>
 </form>
+</div>
 
Index: affelio/apps/diary/templates/write_diary_edit.tmpl
diff -u affelio/apps/diary/templates/write_diary_edit.tmpl:1.17 affelio/apps/diary/templates/write_diary_edit.tmpl:1.18
--- affelio/apps/diary/templates/write_diary_edit.tmpl:1.17	Thu Mar 30 16:19:03 2006
+++ affelio/apps/diary/templates/write_diary_edit.tmpl	Thu Apr  6 00:59:40 2006
@@ -127,12 +127,21 @@
 }
 
 function checkNumber(obj,min,max){
+  var str = new String;  
   for(var i=0;i<obj.value.length;i++){
-    if(isNaN(parseInt(obj.value.charAt(i),10))){
-	alert('日時は半角数字で入力してください。');
-	obj.focus();
-	return 0;
-     }
+  	  var c = obj.value.charCodeAt(i);
+//	  if(isNaN(parseInt(obj.value.charAt(i),10))){
+	  if ((c<48 || c>57 ) && (c<65296 || c>65305)){
+	     alert('日時は数字で入力してください。');
+	     obj.focus();
+	     return 0;
+	  }
+	  if (c>=65296 && c<=65305){
+	     str += String.fromCharCode(c - 65248);
+	  }
+  }
+  if (str!=""){
+     obj.value = str;
   }
   if(parseInt(obj.value,10)<min || parseInt(obj.value,10)>max){
 	alert('日時は正しく入力してください。');


Affelio-cvs メーリングリストの案内
Back to archive index