view templates/systemSetting.html @ 143:42f6eb738567

mod: ÀѤ߻Ĥ·¤ò½¤Àµ
author epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
date Sun, 21 Mar 2010 21:54:03 +0900
parents a935b4789aff
children
line wrap: on
line source

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>{$sitetitle}</title>

<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.validate.min.js"></script>
<script type="text/javascript" src="js/messages_ja.js"></script>

<script type="text/javascript">
<!--
{literal}

	var PRG = {
		thumbs:function() {
			if( $('#id_use_thumbs' ).val() == 0 ) {
				$('#id_ffmpeg').attr('disabled','disabled');
				$('#id_thumbs').attr('disabled','disabled');
			}
			else {
				$('#id_ffmpeg').attr('disabled',false);
				$('#id_thumbs').attr('disabled',false);
			}
		}
	}
	$(document).ready(function(){
		$("#system_setting").validate();
		PRG.thumbs();
	});

{/literal}

-->
</script>


<style type="text/css">
<!--
{literal}

body {padding:4px;margin:0;font-size:10pt; width: 85%;}
a {text-decoration:none;}

.bold {font-weight:bold;}
.small {font-size:75%;}

div.setting { padding: 0px; margin-left: 20px; margin-bottom: 20px;}

{/literal}
-->
</style>
</head>
<body>

<div>{$message}</div>

<h2>MySQLデータベース設定</h2>

<form id="system_setting" method="post" action="{$post_to}">


<h3>MySQLホストå</h3>
<div class="setting">
<div class="caption">MySQLサーãƒãƒ¼ã®ãƒ›ã‚¹ãƒˆåを入力ã—ã¦ãã ã•ã„。</div>
<input type="text" name="db_host" value="{$settings->db_host}" size="15" class="required" />
</div>

<h3>MySQL接続ユーザーå</h3>
<div class="setting">
<div class="caption">MySQLサーãƒãƒ¼ã®æŽ¥ç¶šã«ä½¿ç”¨ã™ã‚‹ãƒ¦ãƒ¼ã‚¶ãƒ¼åを入力ã—ã¦ãã ã•ã„。</div>
<input type="text" name="db_user" value="{$settings->db_user}" size="15" class="required" />
</div>

<h3>MySQL接続パスワード</h3>
<div class="setting">
<div class="caption">MySQLサーãƒãƒ¼ã®æŽ¥ç¶šã«ä½¿ç”¨ã™ã‚‹ãƒ‘スワードを入力ã—ã¦ãã ã•ã„。</div>
<input type="text" name="db_pass" value="{$settings->db_pass}" size="15" class="required" />
</div>


<h3>使用データベースå</h3>
<div class="setting">
<div class="caption">使用ã™ã‚‹ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹åを設定ã—ã¾ã™ã€‚設定ã™ã‚‹ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã¯æŽ¥ç¶šãƒ¦ãƒ¼ã‚¶ãƒ¼ãŒãƒ†ãƒ¼ãƒ–ルã®ä½œæˆç­‰ã‚’è¡Œã†æ¨©é™ã‚’æŒã£ã¦ã„ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚</div>
<input type="text" name="db_name" value="{$settings->db_name}" size="15" class="required" />
</div>

<h3>テーブル接頭辞</h3>
<div class="setting">
<div class="caption">テーブルåã®å†’é ­ã«è¿½åŠ ã™ã‚‹æŽ¥é ­è¾žã§ã™ã€‚epgrecã®å†ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã‚’旧テーブルを使用ã›ãšã«è¡Œã†ã‚ˆã†ãªã‚±ãƒ¼ã‚¹ã‚’除ãã€ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã®ã¾ã¾ã§æ§‹ã„ã¾ã›ã‚“。</div>
<input type="text" name="tbl_prefix" value="{$settings->tbl_prefix}" size="15" class="required" />
</div>


<h2>インストール関連設定</h2>

<h3>インストールURL</h3>
<div class="setting">
<div class="caption">epgrecã‚’LAN内ã®ã‚¯ãƒ©ã‚¤ã‚¢ãƒ³ãƒˆã‹ã‚‰å‚ç…§ã™ã‚‹ã“ã¨ãŒã§ãã‚‹URLを設定ã—ã¾ã™ã€‚http://localhost…ã®ã¾ã¾ã§åˆ©ç”¨ã™ã‚‹ã“ã¨ã‚‚å¯èƒ½ã§ã™ãŒã€ãã®å ´åˆã¯ãƒ“デオã®è¦–è´ç­‰ãŒã‚µãƒ¼ãƒãƒ¼ä¸Šã§ã—ã‹ã§ããªã„ãªã©ã®åˆ¶é™ãŒç”Ÿã˜ã¾ã™ã€‚</div>
<input type="text" name="install_url" value="{$settings->install_url}" size="40" class="required" />
</div>


<h3>録画ä¿å­˜ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª</h3>
<div class="setting">
<div class="caption">録画ファイルをä¿å­˜ã™ã‚‹ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’{$install_path}ã‹ã‚‰ã®ç›¸å¯¾ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã§è¨­å®šã—ã¾ã™ã€‚先頭ã«/ãŒå¿…ãšå¿…è¦ã§ã™ã€‚設定ã™ã‚‹ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã«ã¯å分ãªç©ºã容é‡ãŒã‚ã‚Šã€æ›¸ãè¾¼ã¿æ¨©ãŒå¿…è¦ã§ã™ã€‚ã¾ãŸã€URLã§å‚ç…§å¯èƒ½ãªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’設定ã—ãªã„ã¨ASFã«ã‚ˆã‚‹éŒ²ç”»ã®è¦–è´ãŒã§ãã¾ã›ã‚“。デフォルトã¯/video(ã¤ã¾ã‚Š{$install_path}/video)ã§ã€ã¨ãã«å•é¡ŒãŒãªã‘ã‚Œã°ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã‚’推奨ã—ã¾ã™ã€‚</div>
<input type="text" name="spool" value="{$settings->spool}" size="15" class="required" />
</div>

<h3>サムãƒãƒ¼ãƒ«ã®ä½¿ç”¨</h3>
<div class="setting">
<div class="caption">録画済ã¿ä¸€è¦§ã«ã‚µãƒ ãƒãƒ¼ãƒ«ã‚’入れるã‹ã©ã†ã‹ã‚’設定ã—ã¾ã™ã€‚サムãƒãƒ¼ãƒ«ã‚’利用ã™ã‚‹ã«ã¯ffmpegãŒå¿…è¦ã§ã™ã€‚ffmpegã‚’ãŠæŒã¡ã§ãªã„æ–¹ã¯ã€Œä½¿ç”¨ã—ãªã„ã€ã‚’設定ã—ã¦ãã ã•ã„。</div>
<select name="use_thumbs" id="id_use_thumbs" onChange="javascript:PRG.thumbs()" >
  <option value="0" {if $settings->use_thumbs == 0} selected {/if}>使用ã—ãªã„</option>
  <option value="1" {if $settings->use_thumbs == 1} selected {/if}>使用ã™ã‚‹</option>
</select>
</div>

<h3>ffmpegã®ãƒ‘ス</h3>
<div class="setting">
<div class="caption">サムãƒãƒ¼ãƒ«ä½œæˆã«ä½¿ã†ffmpegã®ãƒ‘スを設定ã—ã¾ã™ã€‚フルパスを設定ã—ã¦ãã ã•ã„。</div>
<input type="text" id="id_ffmpeg" name="ffmpeg" value="{$settings->ffmpeg}" size="40" class="required" />
</div>


<h3>サムãƒãƒ¼ãƒ«ä¿å­˜ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒª</h3>
<div class="setting">
<div class="caption">サムãƒãƒ¼ãƒ«ã‚’ä¿å­˜ã™ã‚‹ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’{$install_path}ã‹ã‚‰ã®ç›¸å¯¾ãƒ‘スã§è¨­å®šã—ã¾ã™ã€‚設定ã®æ–¹æ³•ã€æ¡ä»¶ã¯éŒ²ç”»ä¿å­˜ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã¨åŒæ§˜ã§ã™ã€‚</div>
<input type="text" id="id_thumbs" name="thumbs" value="{$settings->thumbs}" size="15" class="required" />
</div>


<h3>EPGå–得用テンãƒãƒ©ãƒªãƒ•ã‚¡ã‚¤ãƒ«ã®è¨­å®š</h3>
<div class="setting">
<div class="caption">EPGå–å¾—ã«ç”¨ã„る録画データã¨XMLデータã®ãƒ‘スを設定ã—ã¾ã™ã€‚通常ã€ã“ã®è¨­å®šã‚’変ãˆã‚‹å¿…è¦ã¯ã‚ã‚Šã¾ã›ã‚“ãŒã€/tmpã«å分ãªç©ºã容é‡ï¼ˆ500MB程度)ãŒãªã„環境ã§ã¯ç•°ãªã‚‹ãƒ‘スを設定ã—ã¦ãã ã•ã„。パスã¯Webサーãƒãƒ¼ã‹ã‚‰æ›¸ãè¾¼ã¿å¯èƒ½ã«ãªã£ã¦ã„ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™</div>

<div><b>録画データ:</b><input type="text" name="temp_data" value="{$settings->temp_data}" size="30" class="required" /></div>
<div><b>XMLファイル:</b><input type="text" name="temp_xml" value="{$settings->temp_xml}" size="30" class="required" /></div>
</div>

<h3>使用コマンドã®ãƒ‘ス設定</h3>
<div class="setting">
<div class="caption">epgrecãŒå†…部的ã«ä½¿ç”¨ã™ã‚‹ã‚³ãƒžãƒ³ãƒ‰ã®ãƒ‘スを設定ã—ã¾ã™ã€‚ã»ã¨ã‚“ã©ã®å ´åˆã€è¨­å®šã‚’変ãˆã‚‹å¿…è¦ã¯ãªã„ã¯ãšã§ã™ã€‚</div>
<div><b>epgdump:</b><input type="text" name="epgdump" value="{$settings->epgdump}" size="30" class="required" /></div>
<div><b>at:</b><input type="text" name="at" value="{$settings->at}" size="30" class="required" /></div>
<div><b>atrm:</b><input type="text" name="atrm" value="{$settings->atrm}" size="30" class="required" /></div>
<div><b>sleep:</b><input type="text" name="sleep" value="{$settings->sleep}" size="30" class="required" /></div>
</div>


<input type="submit" value="設定をä¿å­˜ã™ã‚‹" id="system_setting-submit" />
</form>
</body>
</html>