Mercurial > epgrec.yaz
view templates/programTable.html @ 136:6754b6aa50cf
mod: ログ機能のためにconfig.phpを変更
author | epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp> |
---|---|
date | Sun, 21 Mar 2010 00:00:58 +0900 |
parents | 57676bb30f64 |
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"> <title>{$sitetitle}</title> <meta http-equiv="Content-Style-Type" content="text/css"> {literal} <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script> <link rel="stylesheet" href="start/jquery-ui-1.7.2.custom.css" type="text/css"> <script type="text/javascript" src="js/mdabasic.js"></script> <script type="text/javascript"> var PRG = { rec:function(id){ $.get(INISet.prgRecordURL, { program_id: id } ,function(data){ if(data.match(/^error/i)){ alert(data); }else{ $('#resid_' + id).addClass('prg_rec'); } }); }, customform:function(id) { $('#floatBox4Dialog').dialog('close'); $.get('reservationform.php', { program_id: id }, function(data) { if(data.match(/^error/i)){ alert(data); } else { var str = data; str += '<div style="margin:2em 0 1em 0;text-align:center;"><a href="javascript:PRG.customrec()" class="ui-state-default ui-corner-all ui-dialog-buttonpane button">篋膣</a></div>'; $('#floatBox4Dialog').html(str); $('#floatBox4Dialog').dialog('open', 'center'); } }); }, customrec:function() { var id_syear = $('#id_syear').val(); var id_smonth = $('#id_smonth').val(); var id_sday = $('#id_sday').val(); var id_shour = $('#id_shour').val(); var id_smin = $('#id_smin').val(); var id_eyear = $('#id_eyear').val(); var id_emonth = $('#id_emonth').val(); var id_eday = $('#id_eday').val(); var id_ehour = $('#id_ehour').val(); var id_emin = $('#id_emin').val(); var id_channel_id = $('#id_channel_id').val(); var id_record_mode = $('#id_record_mode').val(); var id_title = $('#id_title').val(); var id_description = $('#id_description').val(); var id_category_id = $('#id_category_id ').val(); var id_program_id = $('#id_program_id').val(); var with_program_id = $('#id_program_id').attr('checked'); if( ! with_program_id ) id_program_id = 0; $.post('customReservation.php', { syear: id_syear, smonth: id_smonth, sday: id_sday, shour: id_shour, smin: id_smin, eyear: id_eyear, emonth: id_emonth, eday: id_eday, ehour: id_ehour, emin: id_emin, channel_id: id_channel_id, record_mode: id_record_mode, title: id_title, description: id_description, category_id: id_category_id, program_id: id_program_id }, function(data) { if(data.match(/^error/i)){ $('#floatBox4Dialog').dialog('close'); alert(data); } else { var id = parseInt(data); if( id ) { $('#resid_' + id).addClass('prg_rec'); } $('#floatBox4Dialog').dialog('close'); } }); } } $(document).ready(function () { var DG = $('#floatBox4Dialog'); DG.dialog({title:'牙私膣',width:600}); DG.dialog('close'); }); </script> <style type="text/css"> <!-- body {padding:4px;margin:0;font-size:10pt;} a {text-decoration:none;} table#reservation_table { width: 800px; border: 1px #BBB solid; border-collapse: collapse; border-spacing: 0; } table#reservation_table th { padding: 5px; border: #E3E3E3 solid; border-width: 0 0 1px 1px; background: #BBB; font-weight: bold; line-height: 120%; text-align: center; } table#reservation_table td { padding: 5px; border: 1px #BBB solid; border-width: 0 0 1px 1px; text-align: center; } table#reservation_table tr.ctg_news, #category_select a.ctg_news {background-color: #FFFFD8;} table#reservation_table tr.ctg_etc, #category_select a.ctg_etc {background-color: #FFFFFF;} table#reservation_table tr.ctg_information, #category_select a.ctg_information {background-color: #F2D8FF;} table#reservation_table tr.ctg_sports, #category_select a.ctg_sports {background-color: #D8FFFF;} table#reservation_table tr.ctg_cinema, #category_select a.ctg_cinema {background-color: #FFD8D8;} table#reservation_table tr.ctg_music, #category_select a.ctg_music {background-color: #D8D8FF;} table#reservation_table tr.ctg_drama, #category_select a.ctg_drama {background-color: #D8FFD8;} table#reservation_table tr.ctg_anime, #category_select a.ctg_anime {background-color: #FFE4C8;} table#reservation_table tr.ctg_variety, #category_select a.ctg_variety {background-color: #FFD2EB;} table#reservation_table tr.ctg_10, #category_select a.ctg_10 {background-color: #E4F4F4;} table#reservation_table tr.prg_rec {background-color: #F55;color:#FEE} #floatBox4Dialog .prg_title{font-size:120%;font-weight:bold;padding:0.4em 0;text-align:center;} #floatBox4Dialog .prg_rec_cfg{background:#EEE;padding:1em 2em;margin:0.4em 0;} #floatBox4Dialog .labelLeft {width:8em;float:left;text-align:right;} #floatBox4Dialog .button {padding:0.4em 1em;} --> </style> {/literal} </head> <body> <h2>{$sitetitle}</h2> <div><a href="index.php">腟茵祉</a>/<a href="keywordTable.php">牙祉若若膊∞</a></div> <div> 腟莨若随 <form method="post" action="programTable.php"> <input type="hidden" name="do_search" value="1" /> 罎膣∵<input type="text" size="20" name="search" value="{$search}" /><br /> 罩h頫憘戎<input type="checkbox" name="use_regexp" value="1" {if $use_regexp}checked{/if} /> 腮<select name="type"> {foreach from=$types item=type} <option value="{$type.value}" {$type.selected}>{$type.name}</option> {/foreach} </select> 絮<select name="station"> {foreach from=$stations item=st} <option value="{$st.id}" {$st.selected}>{$st.name}</option> {/foreach} </select> 眼<select name="category_id"> {foreach from=$cats item=cat} <option value="{$cat.id}" {$cat.selected}>{$cat.name}</option> {/foreach} </select> 紮<select name="prgtime"> {foreach from=$prgtimes item=prgt} <option value="{$prgt.value}" {$prgt.selected}>{$prgt.name}</option> {/foreach} </select> <select name='weekofday'> {foreach from=$weekofdays item=day} <option value="{$day.id}" {$day.selected}>{$day.name}</option> {/foreach} </select> <input type="submit" value="腟莨若" /> </form> </div> {if count($programs)} <table id="reservation_table"> <tr> <th>腮</th> <th>絮</th> <th>腟紮</th> <th>腟腟篋</th> <th>帥ゃ</th> <th>絎</th> <th>膂≧牙</th> <th>荅括完牙</th> </tr> {foreach from=$programs item=program} <tr id="resid_{$program.id}" class="ctg_{$program.cat}{if $program.rec > 0} prg_rec{/if}"> <td>{$program.type}</td> <td>{$program.station_name}</td> <td>{$program.starttime}</td> <td>{$program.endtime}</td> <td>{$program.title|escape}</td> <td>{$program.description|escape}</td> <td><input type="button" value="牙" onClick="javascript:PRG.rec('{$program.id}')" /></td> <td><input type="button" value="荅括完" onClick="javascript:PRG.customform('{$program.id}')" /></td> </tr> {/foreach} </table> {else} 荅峨腟障 {/if} <div>{$programs|@count}篁吟</div> {if count($programs) >= 300}<div>茵腓堺紊300篁吟障</div>{/if} {if $do_keyword} {if (count($programs) < 300)} <div> <form method="post" action="keywordTable.php"> <b>茯:</b>{$search|escape} <b>罩h頫:</b>{if $use_regexp}篏帥{else}篏帥{/if} <b>腮:</b>{if $k_type == "*"}鴻{else}{$k_type}{/if} <b>絮:</b>{if $k_station == 0}鴻{else}{$k_station_name}{/if} <b>眼:</b>{if $k_category == 0}鴻{else}{$k_category_name}{/if} <b>:</b>{if $weekofday == 7}{else}{$k_weekofday}{/if} <b>:</b>{if $prgtime == 24}{else}{$prgtime}鐔{/if} <b>篁倶:</b>{$programs|@count} <input type="hidden" name="add_keyword" value="{$do_keyword}" /> <input type="hidden" name="k_use_regexp" value="{$use_regexp}" /> <input type="hidden" name="k_search" value="{$search}" /> <input type="hidden" name="k_type" value="{$k_type}" /> <input type="hidden" name="k_category" value="{$k_category}" /> <input type="hidden" name="k_station" value="{$k_station}" /> <input type="hidden" name="k_weekofday" value={$weekofday} /> <input type="hidden" name="k_prgtime" value={$prgtime} /> <b>牙祉≪若:</b><select name="autorec_mode" > {foreach from=$autorec_modes item=mode name=recmode } <option value="{$smarty.foreach.recmode.index}" {$mode.selected} >{$mode.name}</option> {/foreach} </select> <br><input type="submit" value="腟莨若帥牙祉若若脂" /> </form> </div> {/if} {/if} <div id="floatBox4Dialog">jQuery UI Dialog</div> {literal} <script type="text/javascript"> var INISet = { prgRecordURL : 'simpleReservation.php', // 膂≧篋膣 prgRecordPlusURL : 'recordp.php', // 荅括完篋膣 prgCancelURL : 'cancelReservation.php' // 篋膣c潟祉 } </script> {/literal} </body> </html>