[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters viewlog.tmpl,NONE,1.1

Henri-Damien LAURENT hdl at users.sourceforge.net
Wed Jul 20 18:09:06 CEST 2005


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/parameters
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv423/koha-tmpl/intranet-tmpl/default/en/parameters

Added Files:
	viewlog.tmpl 
Log Message:
Adding page to display log views.
can be called by admin/viewlog.pl
Works with C4/Log.pm
uses action_logs table

--- NEW FILE ---
<!-- TMPL_INCLUDE NAME="reportswcal-top.inc" -->
<div id="mainbloc" >

<!-- TMPL_IF NAME="do_it" -->
<script language="JavaScript" type="text/javascript">
function Dopop(link) {
	newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
}
</script>
		<h1 class="parameters">Koha : LogView for <!-- TMPL_VAR NAME="modulename"--> </h1>
		<!-- TMPL_IF NAME="loopfilter"-->
			<p>Filtered on</p>
			<!-- TMPL_LOOP NAME="loopfilter" -->
					<p><!-- TMPL_IF NAME="err" --> <font color="red"> <b><!--/TMPL_IF --><label class="label100"> <!-- TMPL_VAR NAME="name"--> =</label><!-- TMPL_VAR NAME="value"--><!-- TMPL_IF NAME="err" --> </font> </b><!--/TMPL_IF --></p>
			<!-- /TMPL_LOOP -->
		<!-- /TMPL_IF NAME="loopfilter"-->
		<br>
		<table border="1">
			<!-- TMPL_IF NAME="catalogue" -->
				<tr >
							<th class="parameters">Timestamp
							</th>
							<th class="parameters">Firstname
							</th>
							<th class="parameters">Surname
							</th>
							<th class="parameters">Action
							</th>
							<th class="parameters">Info
							</th>
							<th class="parameters">Title
							</th>
							<th class="parameters">Author
							</th>
				</tr>
				<!-- TMPL_LOOP NAME="looprow" -->
					<!-- TMPL_IF NAME="hilighted" --><tr class="higlighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
						<td><!-- TMPL_IF NAME="timestamp" --><!-- TMPL_VAR NAME="timestamp" --><!-- /TMPL_IF -->
						</td>
						<td><!-- TMPL_IF NAME="firstname" --><!-- TMPL_VAR NAME="firstname" --><!-- /TMPL_IF -->
						</td>
						<td><!-- TMPL_IF NAME="surname" --><!-- TMPL_VAR NAME="surname" --><!-- /TMPL_IF -->
						</td>
						<td><!-- TMPL_IF NAME="action" --><!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF -->
						</td>
						<td><!-- TMPL_IF NAME="info" --><!-- TMPL_VAR NAME="info" --><!-- /TMPL_IF -->
						</td>
						<td><!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- /TMPL_IF -->
						</td>
						<td><!-- TMPL_IF NAME="author" --><!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF -->
						</td>
					</tr>
				<!-- /TMPL_LOOP -->
				<!-- /TMPL_IF -->
				<!-- TMPL_IF NAME="acqui" -->
				<tr >
							<th class="parameters">Timestamp
							</th>
							<th class="parameters">Firstname
							</th>
							<th class="parameters">Surname
							</th>
							<th class="parameters">Action
							</th>
							<th class="parameters">Info
							</th>
							<th class="parameters">Title
							</th>
							<th class="parameters">Author
							</th>
				</tr>
				<!-- TMPL_LOOP NAME="looprow" -->
					<!-- TMPL_IF NAME="hilighted" --><tr class="higlighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
						<!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
						<!-- TMPL_VAR NAME="rowtitle" --></td>
						<!-- TMPL_LOOP NAME="loopcell" -->
							<!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td ><!-- /TMPL_IF -->
								<!-- TMPL_IF NAME="reference" --><a href="javascript:Dopop('../members/moremember.pl?bornum=<!-- TMPL_VAR NAME="reference" -->')" ><!-- /TMPL_IF -->
								<!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
								<!-- TMPL_IF NAME="reference" --></a><!-- /TMPL_IF -->
							</td>
							<!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td ><!-- /TMPL_IF -->
								<!-- TMPL_IF NAME="count" --><!-- TMPL_VAR NAME="count" --><!-- /TMPL_IF -->
							</td>
						<!-- /TMPL_LOOP -->
					</tr>
				<!-- /TMPL_LOOP NAME="looprow" -->
				<!-- /TMPL_IF -->
				<!-- TMPL_IF NAME="members" -->
				<tr >
							<th class="parameters">Timestamp
							</th>
							<th class="parameters">Firstname
							</th>
							<th class="parameters">Surname
							</th>
							<th class="parameters">Action
							</th>
							<th class="parameters">Info
							</th>
							<th class="parameters">Title
							</th>
							<th class="parameters">Author
							</th>
				</tr>
				<!-- TMPL_LOOP NAME="looprow" -->
					<!-- TMPL_IF NAME="hilighted" --><tr class="higlighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
						<td><!-- TMPL_IF NAME="timestamp" --><!-- TMPL_VAR NAME="timestamp" --><!-- /TMPL_IF -->
						</td>
						<td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
						</td>
						<td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
						</td>
						<td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
						</td>
						<td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
						</td>
						<td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
						</td>
						<td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
						</td>
						<td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
						</td>
					</tr>
				<!-- /TMPL_LOOP NAME="looprow" -->
				<!-- /TMPL_IF -->
		</table>
<!-- TMPL_ELSE -->
	<h1 class = "parameters">Koha : Display Logs </h1>
	<form method="post">
	
	<table>
		<thead>
			<tr>
			<th class="parameters">On Module</th>
			<th class="parameters">User/Action Filters</th>
			<th class="parameters">Object Filter</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>
					<select name="module">
						<option value ="catalogue" checked>Catalogue</option>
						<option value ="members">Borrowers</option>
						<option value ="acqui">Acquisitions</option>
					</select>
				</td>
				<td>
				<p>
					Koha User : <input type="text" name="user" value="">
				</p>
				<p>	Action type : <select name="action">
						<option value ="">All</option>
						<option value ="add">Add</option>
						<option value ="del">Delete</option>
						<option value ="mod">Modify</option>
					</select>
				</p>
				<p> From <input type="text" readonly="readonly" size="10" id="from" name="from" >
							<img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" border="0" hspace="0" vspace="0" id="openCalendarFrom" style="cursor: pointer;" valign="top">
								<script language="JavaScript" type="text/javascript">
									function validate1(date) {
										var day = date.getDate();
										var month = date.getMonth() + 1;
										var year = date.getFullYear();
										var weekDay = date.getDay();
										var dayMonth = month + '-' + day;
										var dateString = year + '-' + month + '-' + day;
										var dateTo = document.getElementById('to').value.split("-");
										var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
										if (date > limitDate) {
											return true;
										} else {
											return false;
										}
									}
					
									Calendar.setup(
										{
											inputField : "from",
											ifFormat : "%Y-%m-%d",
											button : "openCalendarFrom",
											disableFunc : validate1,
											dateStatusFunc : validate1
										}
									);
								</script>
					To <input readonly="readonly" size="10" id="to" name="Filter" value="" type="to">
						<img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" valign="top" border="0" hspace="0" vspace="0">
							<script type="text/javascript">
								function validate2(date) {
									var day = date.getDate();
									var month = date.getMonth() + 1;
									var year = date.getFullYear();
									var weekDay = date.getDay();
									var dayMonth = month + '-' + day;
									var dateString = year + '-' + month + '-' + day;
									var dateFrom = document.getElementById('from').value.split("-");
									var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
									if (limitDate > date) {
										return true;
									} else {
										return false;
									}
								}
		
								Calendar.setup(
									{
										inputField : "to",
										ifFormat : "%Y-%m-%d",
										button : "openCalendarTo",
										disableFunc : validate2,
										dateStatusFunc : validate2
									}
								);
							</script>
				</td>
			</tr>
	</table>
	
	<div id="bloc25">
		<h3 class="parameters"> Output </h3>
		<input type="radio" checked name="output" value="screen" > To screen into the browser
		<br>
		<input type="radio" name="output" value="file"> To file <input type="text" name="basename" value="Export"> into an application  
		<!-- TMPL_VAR NAME="CGIextChoice" -->
		<!-- TMPL_VAR NAME="CGIsepChoice" -->
	</p>
	</div>
	<p>
	<input TYPE="submit" value="OK" class="button parameters">
	<input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->">
	<input type="hidden" name="do_it" value="1">
	</form>
<!-- /TMPL_IF -->
</div>
<!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->





More information about the Koha-cvs mailing list