function print_error($reason, $type = 0)
{
    build_body($title, $bgcolor, $text_color, $link_color, $vlink_color, $alink_color, $style_sheet);
    // for missing required data
    if ($type == "missing") {
        if ($missing_field_redirect) {
            header("Location: {$missing_field_redirect}?error={$reason}");
            exit;
        } else {
            ?>
      The form was not submitted for the following reasons:<p>
      <ul><?php 
            echo $reason . "\n";
            ?>
</ul>
      Please use your browser's back button to return to the form and try again.<?php 
        }
    } else {
        // every other error
        ?>
      The form was not submitted because of the following reasons:<p>
      <?php 
    }
    echo "<br><br>\n";
    echo "<small>This form is powered by <a href=\"http://www.dtheatre.com/scripts/\">Jack's Formmail.php " . VERSION . "</a></small>\n\n";
    exit;
}
Ejemplo n.º 2
0
function print_error($reason,$type = 0) {
   global $version;
   build_body($title, $bgcolor, $text_color, $link_color, $vlink_color, $alink_color, $style_sheet);
   // for missing required data
   if ($type == "missing") {
      ?>
      The form was not submitted for the following reasons:<p>
     <ul><?
     echo $reason."\n";
     ?></ul>
     Please use your browser's back button to return to the form and try again.<?
   } else { // every other error
      ?>
      The form was not submitted because of the following reasons:<p>
      <?
   }
   echo "<br><br>\n";
   echo "<small>This form is powered by <a href=\"http://www.lumbroso.com/scripts/\">Jack's Formmail.php $version!</a></small>\n\n";
   exit;
}
Ejemplo n.º 3
0
function print_error($reason, $type = 0)
{
    global $version;
    build_body($title, $bgcolor, $text_color, $link_color, $vlink_color, $alink_color, $style_sheet);
    // for missing required data
    if ($type == "missing") {
        ?>
			<title>Form Submission</title>
      <div style="border:1px solid #00118f; padding:10px; margin:50px; font-family:verdana,geneva,helvetica; font-size:12px;"><h3>Submission Error</h3><p>The form was unable to be submitted for the following reasons:</p>
     <ul><li><?php 
        echo $reason . "\n";
        ?>
</li></ul>
      <p style="text-align:center;"><a href="javaScript:history.back()">Back to the form</a></p><?php 
    } else {
        // every other error
        ?>
      The form was not submitted because of the following reasons:<p>
      <?php 
    }
    echo "<br><br>\n";
    echo "";
    exit;
}
Ejemplo n.º 4
0
<?php

/*********************************************
/* Query Script for GiantDisc Server
   written by Andreas Baierl in 2009

   Project Homepage: http://sourceforge.net/projects/gdrestfulwebint/
   Help: http://sourceforge.net/apps/mediawiki/gdrestfulwebint/index.php!

*/
require_once "includes/inc.includes.php";
// Include necessary files
build_header("Query");
build_body("Query", "2", "onload=\"JavaScript:init();\"");
echo '
	Query-String:<br /><br />
	<input type="text" size="150" name="query_string" id="query_string" />
	<input type="hidden" name="query" value="1" />
	<p><input type="submit" name="submit" value="Submit Query" onclick="do_query();"/></p>
	<div id="queryresult"></div>';
build_footer();
Ejemplo n.º 5
0
/**
 * Error processing function
 * @param string $reason
 * @param int $type
 * @return void
 */
function print_error($reason, $type = 0)
{
    $redirectOnFail = $_POST['redirectOnFail'];
    $replyEmailOnFail = $_POST['replyEmailOnFail'];
    if ($redirectOnFail == '') {
        build_body($title, $bgcolor, $text_color, $link_color, $vlink_color, $alink_color, $style_sheet);
        // for missing required data
        if ($type == "missing") {
            if ($missing_field_redirect) {
                header("Location: {$missing_field_redirect}?error={$reason}");
                exit;
            } else {
                $failMessage = 'The form was not submitted for the following reasons:<p>';
                $failMessage .= '<ul>' . $reason . "\n" . '</ul>';
                echo $failMessage;
                echo 'Please use your browser&#39;s back button to return to the form and try again.';
            }
        } else {
            // every other error
            $failMessage = 'The form was not submitted because of the following reasons:<p>';
            echo $failMessage;
        }
        echo "<br /><br />\n";
        echo "<small>This form is powered by <a href=\"http://phpmailer.sourceforge.net/\">PHPMailer-FE.php " . VERSION . "</a></small>\n\n";
    } else {
        $reason = str_replace('<li>', '', $reason);
        $reason = str_replace('</li>', '<br />', $reason);
        $failMessage = '';
        if ($type == "missing") {
            if ($missing_field_redirect) {
                $failMessage .= $reason;
            } else {
                $failMessage .= 'The form was not submitted for the following reasons:<br /><br />';
                $failMessage .= $reason;
            }
        } else {
            // every other error
            $failMessage .= ' The form was not submitted because of the following reasons:<br /><br />';
            $failMessage .= $reason;
        }
        $failMessage .= "<br />";
        $_POST['failMessage'] = $failMessage;
        $msgDisplay = getTplFile($redirectOnFail);
        echo $msgDisplay;
    }
    // code to send reply to sender on failure of form submission
    /* note your email HTML form has to include the variables
     * $recipient (this will be used as the TO: address)
     * $fromemail (this will be used as the FROM: address - should be your email address)
     * $fromname  (this will be used as the FROM: name    - should be your name)
     * all other aspects of the reply email have to be set by you ... you can use
     * variables from your form in the format $field.
     * in your form, use the code format
     * <php echo $recipient; ?>
     */
    if ($replyEmailOnFail != '') {
        $msgSend = getTplFile($replyEmailOnFail);
        $replyEmail = array();
        $replyEmail["text"] = stripslashes(html_entity_decode(strip_tags($msgSend)));
        $replyEmail["html"] = stripslashes($msgSend);
        $ccOrg = $cc;
        $cc = NULL;
        $bccOrg = $bcc;
        $bcc = NULL;
        if (trim($subjectEmailOnFail) != '') {
            $subject = $subjectEmailOnFail;
        }
        mail_it($replyEmail, $subject, $recipient, '', $email, false);
        $cc = $ccOrg;
        $bcc = $bccOrg;
    }
    // END code to send reply to sender on failure of form submission
    echo '<script type="text/javascript">document.getElementById("feprocessing").src="_src/complete.gif";</script>';
    exit;
    // exit so that no other processing is done after a failure or error
}
Ejemplo n.º 6
0
}
build_header("Details Mitglied");
?>



<script>
	$(document).ready(function(){
	<?php 
include "includes/inc.jsonload.php";
?>
	$('#mitglied').load('includes/edit_mitglied.php?id=<?php 
print $_GET['id'];
?>
',
		function() {
		}
	);
});
</script>

<?php 
build_body("Mitgliedertabelle", "Details Mitglied");
?>


<div id="mitglied">
</div>

<?php 
build_footer();
<?php

/*********************************************
/* Browse Script for GiantDisc Server
   written by Andreas Baierl in 2009

   Project Homepage: http://sourceforge.net/projects/gdrestfulwebint/
   Help: http://sourceforge.net/apps/mediawiki/gdrestfulwebint/index.php

*/
require_once "includes/inc.includes.php";
// Include necessary files
build_header("Browse");
build_body("Browse");
// get parameters
$level0 = $_GET['level0'];
$level1 = $_GET['level1'];
$level2 = urldecode($_GET['level2']);
$ar = $_GET['ar'];
$tr = $_GET['tr'];
$sourceid = $_GET['sourceid'];
// set trackrow parameters (to be improved! OOP!)
$trackrow_param->artist = TRUE;
$trackrow_param->title = TRUE;
$trackrow_param->length = TRUE;
$trackrow_param->play = TRUE;
$trackrow_param->edit = TRUE;
#######################################################################################
### Show first level:
// print the main top menu
print "<div class='browsemenu'>\n";
Ejemplo n.º 8
0
?>
<script type="text/javascript">


$(document).ready(function(){
<?php 
include "includes/inc.jsonload.php";
?>
	$('table.plist tbody tr:odd').addClass('odd');
	$('table.plist tbody tr:even').addClass('even');
});


</script>
<?php 
build_body("Statistik");
?>

<div class="queryresult">
<?php 
function print_stats_row($title, $stats, $array)
{
    $statistik = $array;
    $str_a_ges = eval('$ges = $statistik->Statistik->absolut->' . $stats . ';return($ges);');
    $str_a_m = eval('$ges = $statistik->Statistik->absolut->' . $stats . '_m;return($ges);');
    $str_a_w = eval('$ges = $statistik->Statistik->absolut->' . $stats . '_w;return($ges);');
    $str_r_ges = eval('$ges = $statistik->Statistik->relativ->' . $stats . ';return($ges);');
    $str_r_m = eval('$ges = $statistik->Statistik->relativ->' . $stats . '_m;return($ges);');
    $str_r_w = eval('$ges = $statistik->Statistik->relativ->' . $stats . '_w;return($ges);');
    $string .= "<tr>\n";
    $string .= "<td>";
		var selectstring = "SELECT * FROM tracks";
		var wherestring = (build_wherestring());
		var querystring = selectstring+wherestring+" ORDER BY artist"+limit;
		$('#where').html(querystring).show();
		$.post("includes/inc.doquery.php", '{ "query" : "'+querystring+'" }' , function (json) { 
			$('#queryresult').html("").html(json);
			$('table.tracklist tbody tr:odd').addClass('odd');
			$('table.tracklist tbody tr:even').addClass('even');
		});
		var querystring = selectstring+wherestring+" ORDER BY artist";
	}

</script>

<?php 
build_body("Search");
?>
		<div class="results">
		<div class="searchform">
		<form id="search_form">
		<table>
				<tr><th>Artist</th><td><input id="artist" name="artist" /></td></tr>
				<tr><th>Title</th><td><input id="title" name="title" /></td></tr>
<!--				<tr><th>Album</th><td><input name="album" /></td></tr> -->
				<tr><th colspan="2" class="but"><input type="reset" value="Clear"><input type="button" id="submitbutton" value="Search"/></th></tr>
		</table>
		</form>
		</div>
		<div class="searchresults border-left">
		<div id="where" class="whereclause"></div>
		<div id="queryresult" class="searchresults2"></div>
Ejemplo n.º 10
0
include "includes/inc.jsonload.php";
?>
	$('#tabs').tabs({
		load: function(event,ui) {
			$('table.plist tbody tr:odd').addClass('odd');
			$('table.plist tbody tr:even').addClass('even');
			
		},
		selected: '-1'
	});
});


</script>
<?php 
build_body("Listen");
?>

<div class="queryresult">
<div id="tabs">
     <ul>
         <li><a href="lists/list_1.php" title="Listen"><span>Hauptverein</span></a></li>
         <li><a href="lists/list_2.php" title="Listen"><span>Tennis</span></a></li>
         <li><a href="lists/list_3.php" title="Listen"><span>Stock</span></a></li>
         <li><a href="lists/list_4.php" title="Listen"><span>Gymnastik</span></a></li>
         <li><a href="lists/list_5.php" title="Listen"><span>M&auml;nnlich</span></a></li>
         <li><a href="lists/list_6.php" title="Listen"><span>Weiblich</span></a></li>
         <li><a href="lists/list_7.php" title="Listen"><span>Jubil&auml;um</span></a></li>
         <li><a href="lists/list_8.php" title="Listen"><span>Jubil&auml;um 2</span></a></li>
         <li><a href="lists/list_9.php" title="Listen"><span>Geburtstage</span></a></li>
		 <li><a href="lists/list_10.php" title="Listen"><span>Verstorben etc.</span></a></li>
Ejemplo n.º 11
0
include "includes/inc.jsonload.php";
?>
	$('#tabs').tabs({
		load: function(event,ui) {
		//	$('table.plist tbody tr:odd').addClass('odd');
		//	$('table.plist tbody tr:even').addClass('even');
			
		},
		selected: '-1'
	});
});


</script>
<?php 
build_body("Routen");
?>

<div class="queryresult">
<div id="tabs">
	<ul>

<?php 
$routen = json_decode(send_request('routen.php/', 'get'));
echo '<li><a href="routen/route.php?id=0" title="Listen"><span>nicht zugeordnet</span></a></li>';
for ($i = 1; $i < $routen->count_query; $i++) {
    echo '<li><a href="routen/route.php?id=' . $i . '" title="Listen"><span>Route ' . $i . '</span></a></li>';
}
echo '<li><a href="routen/route.php?id=firma" title="Listen"><span>Firmen</span></a></li>';
echo '<li><a href="routen/route.php?id=alle" title="Listen"><span>Alle</span></a></li>';
?>
Ejemplo n.º 12
0
		rows += "<th>ID</th>";
		rows += "<th>Nachname</th>";
 		rows += "<th>Vorname</th>"; 
		rows += "<th>Strasse</th>"; 
		rows += "<th>Hausnummer</th>"; 
		rows += "<th>PLZ</th>"; 
		rows += "<th>Ort</th>"; 
		rows += "<th>Ortsteil</th>"; 
		rows += "<th>Geburtsdatum</th>";
		rows += "<th>Edit</th>"; 
		rows += "</tr></thead>"; 	
		rows += "<tbody>";
		rows += "</tbody>";
		rows += "<tfoot>";
		rows += "</tfoot>";
		$('table#datatable').html("").html(rows);
}

</script>
<?php 
build_body("Mitgliedertabelle");
print '<div><a href="mitglied_neu.php" target="_blank">Neues Mitglied anlegen</a></div>';
?>

<div class="queryresult">
	<table id="datatable" class="mlist"></table>
</div>


<?php 
build_footer();
Ejemplo n.º 13
0
<?php

/*********************************************
/* Import Script for GiantDisc Server
   written by Andreas Baierl in 2009

   Project Homepage: http://sourceforge.net/projects/gdrestfulwebint/
   Help: http://sourceforge.net/apps/mediawiki/gdrestfulwebint/index.php!

*/
require_once "includes/inc.includes.php";
// Include necessary files
build_header("Import");
build_body("Import");
// print the main top menu
print "<div class='browsemenu'>\n";
$sel = strcmp($_GET['level0'], "albums") == 0 ? "" : "in";
print "<div class=\"browsemenuitem" . $sel . "active\"><a href=\"import.php?level0=albums\">Import Albums</a></div>\n";
$sel = strcmp($_GET['level0'], "singles") == 0 ? "" : "in";
print "<div class=\"browsemenuitem" . $sel . "active\"><a href=\"import.php?level0=singles\">Import Singles</a></div>\n";
print "</div>\n";
print "<div class='results'>\n";
print "<div class='searchresults'>\n";
/*************************************
   Create tables with ID3-Tags
   Possibility to edit and change track-details
**************************************/
// **************************************************
// Table Single Tracks
// is created, if directory "inbox" (single tracks) are selected
//