<dtml-comment>
##############################################################################
manage_editSettingForm.html

Interface for edit settings for blog.

Copyright (c) 2003-2005 Atsushi Shibata All Rights Reserved.
##############################################################################
</dtml-comment>

<dtml-var manage_page_header>

<dtml-var additional_css>

<dtml-var manage_tabs>

<dtml-comment>
<dtml-var "manage_form_title(this(), _,
           form_title='Edit Entry'
	   )">
</dtml-comment>

<dtml-unless section>
<dtml-call "REQUEST.set('section',0)">
</dtml-unless>

<table cellspacing="0" cellpadding="0"  border="0"  class="subsetting-area">
	<tr>
		<dtml-in "[{'sn':'BASIC','sect':0},{'sn':'Categories','sect':1},{'sn':'Entry Editing','sect':2},
						 {'sn':'Comment,Trackback','sect':3},{'sn':'Skin','sect':4},{'sn':'Moblog','sect':5}]" mapping>
		<td>
		<dtml-if "sect==section">
		<span class="subsetting-selected">
		<dtml-else>
		<span class="subsetting">
		</dtml-if>
		<a href="./manage_editSettingForm?section:int=<dtml-var sect>">
		<dtml-var sn>
		</a></span>
 		</td>
		<td class="subsetting-hsep">&nbsp;</td>
		</dtml-in>
	</tr>
</table>

<dtml-comment>Setting form for BASIC,Entry,Comment/Trackback,Moblog</dtml-comment>

<dtml-if "section in [0,2,3,5]">

<p class="form-help">
Edit settings for '<dtml-var title>'. Some fields are optional.
</p>

<table cellspacing="0" cellpadding="4"  border="0" width="100%">
<FORM ACTION="manage_editSettings" METHOD="POST">
<input type="hidden" name="section:int" value="<dtml-var section missing="0">">
	<dtml-if "section==0">
 	<tr>
		<td>
 		<div class="form-label">
		Title
		</div>
 		<input type="text" name="title" size="80" value="<dtml-var title html_quote missing="">" />
		</td>
	</tr>

	<tr>
		<td>
		<div class="form-optional">
		Short description
		</div>
 		<input type="text" name="blog_description:string" size="80" value="<dtml-var blog_description html_quote missing="">" />
		</td>
	</tr>

	<tr>
		<td>
 		<div class="form-optional">
		Long desctiption</div>
		<div class="form-help">
		description for about
 		</div>
 		<textarea name="blog_long_description:text" cols="80" rows="8"><dtml-var blog_long_description html_quote missing=""></textarea>
		</td>
	</tr>

	<tr>
		<td>
		<div class="form-optional">
		Description for footer
		</div>
		<textarea name="footer:text" cols="80" rows="3"><dtml-var footer html_quote missing=""></textarea>
		</td>
	</tr>

<dtml-comment>
	<tr>
		<td>
		<div class="form-optional">
		Author's Profile</div>
		<textarea name="author_profile:text" cols="80" rows="8"><dtml-var author_profile html_quote missing=""></textarea>
		</td>
	</tr>
</dtml-comment>

	<tr>
 		<td>
		<div class="form-label">
		Item counts</div>
		 	<table border="0" cellspacing="0" cellpadding="0">
			 	<tr>
				 	<td>
						<span class="form-item">
						Item count for modules : 
						</span>
						<input type="text" name="module_item_count:int" size="8" value="<dtml-var module_item_count html_quote missing="5">" />
				 	</td>
					<td  class="form-hsep">&nbsp;</td>
				 	<td>
				 		<span class="form-item">
 						Day count for Top Page :
						</span>
 						<input type="text" name="top_days:int" size="8" value="<dtml-var top_days html_quote missing="5">" />
				 	</td>
				</tr>
 			</table>
		</td>
	</tr>
  	<tr>
		<td>
		<div class="form-label">
		Blog URL
		</div>
		<div class="form-help">(This URL appears in PING,Trackback, etc.)</div>
		<input type="text" name="blog_url" size="80" value="<dtml-var blog_url html_quote missing="">" />
		</td>
	</tr> 

	<tr>
		<td>
			<div class="form-label">
			Charcode settings.
			</div>
		 	<table border="0" cellspacing="0" cellpadding="0">
			 	<tr valign="top" >
				 	<td>
 						<span class="form-item">
						Char-code :
						</span>
						<select name="management_page_charset:string">
						<option value="euc-jp" <dtml-if "management_page_charset=='euc-jp'">selected</dtml-if>>EUC-JP</option>
						<option value="shift_jis" <dtml-if "management_page_charset=='shift_jis'">selected</dtml-if>>S-JIS</option>
 						<option value="utf-8" <dtml-if "management_page_charset=='utf-8'">selected</dtml-if>>UTF-8</option>
						<option value="us-ascii"<dtml-if "management_page_charset=='us-ascii'">selected</dtml-if>>us-ascii</option>
						</select>
						<br>
 						<span class="form-item">
						Change charcode (It will take time.) :
						</span>
						<input type="checkbox" name="change_charcode">
					</td>
					<td  class="form-hsep">&nbsp;</td>
				 	<td>
 						<span class="form-item">
						Char-code for  sending Trackback :
						</span>
						<select name="trackback_char_code:string">
						<option value="euc-jp" <dtml-if "trackback_char_code=='euc-jp'">selected</dtml-if>>EUC-JP</option>
						<option value="shift_jis" <dtml-if "trackback_char_code=='shift_jis'">selected</dtml-if>>S-JIS</option>
						<option value="utf-8" <dtml-if "trackback_char_code=='utf-8'">selected</dtml-if>>UTF-8</option>
						<option value="us-ascii"<dtml-if "trackback_char_code=='us-ascii'">selected</dtml-if>>us-ascii</option>
						</select>
					</td>
				</tr>
			</table>
		</ td>
	</tr>

	<dtml-elif "section==2">

	<tr>
		<td >
		<div class="form-optional">
		Allowed Tags for Entry
		</div>
		<div class="form-help">(separate by comma)</div>
		<input type="text" name="body_tags:string" size="80" value="<dtml-var body_tags html_quote missing="">" />
		</td>
	</tr>

	<tr>
		<td >
		<span class="form-optional">
		Default format :
		</span>
		<select name="default_format:int">
		<option value="0" <dtml-try><dtml-if "default_format == 0">selected</dtml-if><dtml-except></dtml-try>>Plain Text(HTML OK)</option>
		<option value="1" <dtml-try><dtml-if "default_format == 1">selected</dtml-if><dtml-except></dtml-try>>StructuredText</option>
		<option value="2" <dtml-try><dtml-if "default_format == 2">selected</dtml-if><dtml-except></dtml-try>>HTML</option>
		<option value="4" <dtml-try><dtml-if "default_format == 4">selected</dtml-if><dtml-except></dtml-try>>reStructuredText</option>
		</select>
		</td>
    </tr>

	<dtml-try>
 	<tr>
		<td>
		<div class="form-optional">
		Epoz settings.
		</div>
		 	<table border="0" cellspacing="0" cellpadding="0">
			 	<tr valign="top">
 				 	<td>
					<span class="form-item-op">
					Enable Epoz Service:
					</span>
					 <input type="checkbox" name="use_epoz_service:boolean" <dtml-try><dtml-if "use_epoz_service==1">checked</dtml-if><dtml-except></dtml-try>>
					</td>
					<td class="form-hsep">&nbsp;</td>
 					<td>
					<span class="form-item-op">
					Width(in pixel):
					</span> 
					<input type="text" name="epoz_width:int" value="<dtml-var epoz_width missing="640">" size="8">
					</td>
					<td class="form-hsep">&nbsp;</td>
					<td >
					<span class="form-item-op">
 					Height: 
					</span> 
					<input type="text" name="epoz_height:int" value="<dtml-var epoz_height missing="400">" size="8">
					</td>
				</tr>
			</table> 
		</td>
	</tr>
    <dtml-except>
	</dtml-try>

	<tr>
		<td >
		<div class="form-optional">
		Fields to hide
		</div>
		<table>
		<tr>
		<dtml-in "[{'n':'hide_subtitle','t':'Subtitle'},{'n':'hide_entrydatetime','t':'Entry Date&Time'},
						 {'n':'hide_extend','t':'Extend'},{'n':'hide_subcategory','t':'Sub category'},
						 {'n':'hide_excerpt','t':'Excerpt'},{'n':'hide_comment','t':'Comment & Trackback'},
						 {'n':'hide_trackbackurls','t':'Trackback URLs'}]" mapping>
		<td valign="top">
		<span class="form-item-op">
		<dtml-var t>  :
		</span> 
		</td>
		<td valign="top" > 
		<input type="checkbox" name="<dtml-var n>" <dtml-if "getProperty(n)">checked</dtml-if>>
		</td>
		<dtml-if "_['sequence-index'] % 5 == 3"></tr><tr></dtml-if>
		</dtml-in>
		</tr>
		</table> 
		</td>
	</tr>
 
 	<tr>
		<td> 
		 	<table border="0" cellspacing="0" cellpadding="0">
			 	<tr>
				 	<td>
					<span class="form-optional">
					Textfield width :
					</span>
 					<input type="text" name="textbox_width:int" size="8" value="<dtml-var textbox_width missing="80">" />
					</td>
					<td class="form-hsep">&nbsp;</td>
					<td >
 					<span class="form-optional">
					Textarea width :
					</span>
					<input type="text" name="textarea_width:int" size="8" value="<dtml-var textarea_width missing="60">" />
					</td>
				</tr>
			</table>
		</td> 
	</tr>
	<tr>
 		<td >
			<div class="form-optional">
			Textarea Height 
  			</div>
		 	<table border="0" cellspacing="0" cellpadding="0">
			 	<tr valign="top" >
				 	<td>
					<span class="form-item">
					Body     :
					</span>
					<input type="text" name="body_height:int" size="8" value="<dtml-var body_height missing="20">" />
					</td>
					<td class="form-hsep">&nbsp;</td>
				 	<td>
					<span class="form-item">
					Extend  :
					</span>
					<input type="text" name="extend_height:int" size="8" value="<dtml-var extend_height missing="6">" />
					</td>
					<td class="form-hsep">&nbsp;</td>
 				 	<td>
					<span class="form-item">
					Excerpt :
					</span>
					<input type="text" name="excerpt_height:int" size="8" value="<dtml-var excerpt_height missing="6">" />
					</td>
				</tr>
			</table>
		</td>
	</tr>

	<tr>
		<td >
		<div class="form-optional">
		PING Servers.</div>
		<div class="form-help">(ie. moblogs.com,blo.gs,etc. separate by return)</div>
 		<textarea name="ping_servers:lines" cols="80" rows="4"><dtml-try><dtml-in ping_servers><dtml-if "_.len(_['sequence-item']) > 1"><dtml-var sequence-item>
</dtml-if></dtml-in><dtml-except></dtml-try></textarea>
		</td>
	</tr>

<dtml-comment>
	<tr>
		<td >
		<div class="form-optional">
		Send permalink to PING Server</div>
		<input type="checkbox" name="use_permalink_on_ping">
		</td>
	</tr>
</dtml-comment>

 	<tr>
		<td >
		<div class="form-optional">
		Blog client Settings
		</div>
		 	<table border="0" cellspacing="0" cellpadding="0">
			 	<tr valign="top">
				 	<td>
					<span class="form-item-op">
					Char-code:
					</span>
 					<select name="blogclient_char_code:string">
					<option value="euc-jp" <dtml-try><dtml-if "blogclient_char_code=='euc-jp'">selected</dtml-if><dtml-except></dtml-try>>EUC-JP</option>
					<option value="shift_jis" <dtml-try><dtml-if "blogclient_char_code=='shift_jis'">selected</dtml-if><dtml-except></dtml-try>>S-JIS</option>
					<option value="utf-8" <dtml-try><dtml-if "blogclient_char_code=='utf-8'">selected</dtml-if><dtml-except></dtml-try>>UTF-8</option>
					<option value="us-ascii" <dtml-try><dtml-if "blogclient_char_code=='us-ascii'">selected</dtml-if><dtml-except></dtml-try>>us-ascii</option>
					</select>
					</td>
					<td class="form-hsep">&nbsp;</td>
					<td>
					<span class="form-item-op">
					Default category :
					</span>
					<select name="blog_client_default_category:int">
					<dtml-in category_list>
					<option value="<dtml-var id>" <dtml-try><dtml-if "blog_client_default_category==_.int(id)">selected</dtml-if><dtml-except></dtml-try>><dtml-var name></option>
 					</dtml-in>
 					</select>
 					</td>
				</tr>
			</table>
		</td>
	</tr>

	<dtml-elif "section==3">

	<tr>
		<td >
		<div class="form-optional">
		Allowed Tags for Comment 
		</div>
		<div class="form-help">(separate by comma)</div>
		<input type="text" name="comment_tags:string" size="80" value="<dtml-var comment_tags html_quote missing="">" />
		</td>
	</tr>

	<tr>
		<td >
		 	<table border="0" cellspacing="0" cellpadding="0">
			 	<tr valign="top" >
				 	<td>
					<span class="form-optional">
					Require name :
					</span>
					<input type="checkbox" name="require_name:boolean" <dtml-if "require_name==1">checked</dtml-if>>
					</td>
					<td  class="form-hsep">&nbsp;</td>
					<td >
					<span class="form-optional">
					Name for Anonymous :
					</span>
					<input type="text" name="anonymous_name:string" size="20" value="<dtml-var anonymous_name html_quote missing="">" />
 					</td>
				</tr>
			</table>
		<td> 
	</tr>

	<tr>
		<td>
		 	<table border="0" cellspacing="0" cellpadding="0">
			 	<tr valign="top" >
				 	<td>
					<span class="form-optional">
					Require email :
					<input type="checkbox" name="require_email:boolean" <dtml-try><dtml-if "require_email==1">checked</dtml-if><dtml-except></dtml-try>>
					</span>
					</td>
					<td  class="form-hsep">&nbsp;</td>
					<td>
					<span class="form-optional">
					Moderate Comment :
					<input type="checkbox" name="moderate_comment:boolean" <dtml-try><dtml-if "moderate_comment==1">checked</dtml-if><dtml-except></dtml-try>>
					</span>
					</td>
					<td  class="form-hsep">&nbsp;</td>
					<td>
					<span class="form-optional">
					Moderate Trackback :
					<input type="checkbox" name="moderate_trackback:boolean" <dtml-try><dtml-if "moderate_trackback==1">checked</dtml-if><dtml-except></dtml-try>>
					</span>
 					</td>
				</tr>
			</table>
		</td>
	</tr>

	<dtml-elif "section==5">

	<tr>
		<td >
		<div class="form-optional">
		Host for POP account
		</div>
		<input type="text" name="mailhost:string" size="80" value="<dtml-var mailhost html_quote missing="">" />
		</td>
	</tr>
	<tr>
 		<td >
		<div class="form-optional">
		Auth info. for POP account
		</div>
		 	<table border="0" cellspacing="0" cellpadding="0">
			 	<tr valign="top" >
				 	<td>
					<div class="form-item-op">
					User name
					</div>
					<input type="text" name="moblog_user:string" size="18" value="<dtml-var moblog_user html_quote missing="">" />
 					</td>
					<td  class="form-hsep">&nbsp;</td>
				 	<td>
					<div class="form-item-op">
					Password
					</div>
 					<input type="password" name="moblog_password:string" size="18 " value="password" />
					</td>
					<td  class="form-hsep">&nbsp;</td>
				 	<td>
					<div class="form-item-op">
					Use APOP protocol
					</div>
					<input type="checkbox" name="useapop:boolean" <dtml-try><dtml-if "useapop==1">checked</dtml-if><dtml-except></dtml-try>>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td >
		<div class="form-optional">
 		Password for adding entry.
 		</div>
		<div class="form-help">(this password must appear in first line of mail for entry)</div>
		<input type="password" name="entry_password:string" size="60" value="password" />
		</td>
	</tr>
	<tr>
		<td >
		<div class="form-optional">
		Author for moblog.
		</div>
		<div class="form-help">(Author name for moblog entry)</div>
		<input type="text" name="author_for_moblog:string" size="60" value="<dtml-var author_for_moblog html_quote missing="">" />
		</td>
	</tr>
	<tr>
		<td >
		<div class="form-optional">
		Sender address for moblog.
		</div>
		<div class="form-help">(Mail from other address will be ignored. Blank means no restriction.)</div>
		<input type="text" name="moblog_email_addr:string" size="60" value="<dtml-var moblog_email_addr html_quote missing="">" />
		</td>
	</tr>
	<tr>
		<td >
		<div class="form-optional">
		Body separator
		</div>
		<div class="form-help">(Lines after separater are ignored.)</div>
		<input type="text" name="body_separater:string" size="60" value="<dtml-var body_separater html_quote missing="">" />
		</td>
	</tr>
 	<tr>
		<td >
		<span class="form-optional">
		Default category for moblog :
		</soan>
		<select name="moblog_default_category:int">
		<dtml-in category_list>
		<option value="<dtml-var id>" <dtml-try><dtml-if "moblog_default_category==_.int(id)">selected</dtml-if><dtml-except></dtml-try>><dtml-var name></option>
		</dtml-in>
		</select>
 		</td>
	</tr>
	<input type="hidden" name="image_serial:int" size="60" value="<dtml-var image_serial html_quote missing="100">" />
 	<tr>
		<td >
		 	<table border="0" cellspacing="0" cellpadding="0">
			 	<tr valign="top" >
				 	<td>
					<span class="form-optional">
					Allow comment for moblog entry :
					</span>
					<input type="checkbox" name="allow_comment_moblog:boolean" <dtml-try><dtml-if "allow_comment_moblog==1">checked</dtml-if><dtml-except>checked</dtml-try>>
					</td>
					<td  class="form-hsep">&nbsp;</td>
				 	<td>
					<span class="form-optional">
					Allow TrackBack for moblog entry :
					</span>
					<input type="checkbox" name="allow_trackback_moblog:boolean" <dtml-try><dtml-if "allow_trackback_moblog==1">checked</dtml-if><dtml-except>checked</dtml-try>>
					</div>
					</td>
				</tr>
 			</table>
		<td>
	</tr>
 	<tr>
		<td >
		To add entry via e-mail, you need to hit <br><b><dtml-var blogurl>/receive</b> periodicaly, using wget or something.
		</td>
	</tr>
	</dtml-if>
  <tr>
    <td  align="center">
    <div class="form-element">
    <input class="form-element" type="submit" name="submit" 
     value="Save Changes" /> 
    </div>
    </td>
  </tr>
 </form>

</table>

<dtml-elif "section==1">
<p class="form-help">
Manage categories for '<dtml-var title>'.
To add a category, push the <strong>Add Category</strong> button and edit the new category's information.To delete categories, check checkbox and push <strong>Delete</strong> button below.
</p>

<dtml-if filtered_meta_types>
	  <table width="100%" cellspacing="0" cellpadding="0" border="0">
		  <tr>
			<td align="left" valign="top">&nbsp;</td>
			<td align="right" valign="top">
			<div class="form-element">
			<form action="<dtml-var URL1>/manage_addCategoryForm" method="get">
				<input class="form-element" type="submit" name="submit" value=" Add Category " />
			</form>
			</div>
			</td>
		  </tr>
	  </table>
</dtml-if>

<form action="&dtml-URL1;/" name="objectItems" method="post">
<dtml-if count_category>
	<table width="100%" cellspacing="0" cellpadding="2" border="0">
		<tr class="list-header">
			<td width="5%" align="left" >&nbsp;</td>
			<td width="5%" align="left" >ID</td>
			<td width="45%" align="left" class="list-item"><div class="list-item">Name</div></td>
			<td width="15%" align="left" class="list-item"><div class="list-item">Entries<img src="misc_/COREBlog/entry_img" border="0" alt="entry"></div></td>
			<td width="30%" align="left" class="list-item"><div class="list-item">Last Modified</div></td>
		</tr>
		<dtml-in category_list>
		<tr class="<dtml-if sequence-odd>row-normal<dtml-else>row-hilite</dtml-if>">
			<td align="left" valign="top" width="16">
			<input type="checkbox" name="ids:list" value="<dtml-var id>" />
			</td>
			<td>
			<dtml-var id>
			</td>
			<td align="left" valign="top">
			<div class="list-item">
			<a href="./manage_editCategoryForm?cat_id=<dtml-var id>"><dtml-var name></a>
			</div>
			</td>
			<td>
			<div class="list-item">
			<dtml-var get_count>
			</div>
			</td>
			<td>
			<div class="list-item">
			<dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M">
			</div>
			</td>
		</tr>
	</dtml-in>
	</table>
	<table cellspacing="0" cellpadding="2" border="0">
	<tr>
	  <td align="left" valign="top" width="16"></td>
	  <td align="left" valign="top">
	  <div class="form-element">
	  <input class="form-element" type="submit" name="manage_deleteCategories:method" 
	   value="Delete" />
	  <input class="form-element" type="submit" name="manage_calculateCategory:method" 
	   value="Recalculate" />
	  </div>
	  </td>
	</tr>
	</table>
<dtml-else>
	<table cellspacing="0" cellpadding="2" border="0">
		<tr>
			<td>
			<div class="std-text">
			There are currently no category in <em><dtml-var title></em>
			<br /><br />
			</div>
			</td>
			</tr>
	</table>
</dtml-if>

<dtml-elif "section==4">
<p class="form-help">
Edit Skin settings for '<dtml-var title>'.
</p>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<FORM ACTION="manage_changeSkin" METHOD="POST">
	<tr>
		<td align="left" valign="top">&nbsp;</td>
		<td align="right" valign="top">
			<div class="form-element">
			<select name="after" class="form-element">
			<dtml-in skin_items>
			<option value="<dtml-var id>"<dtml-if "skin_name==id">selected</dtml-if>><dtml-var title_or_id></option>
			</dtml-in>
			</select>
			<input type="hidden" name="before" value="<dtml-var skin_name missing="">">
			<input class="form-element" type="submit" name="submit" 
			 value="Chenge Skin" /> 
		</td>
	</tr>
</FORM>
<dtml-var skin_setting_form missing="Skin setting is not defined.">
</table>
</dtml-if>



<dtml-var manage_page_footer>