mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
CI Init
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nDatabase error: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
Type: <?php echo get_class($exception), "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $exception->getFile(), "\n"; ?>
|
||||
Line Number: <?php echo $exception->getLine(); ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
Severity: <?php echo $severity, "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $filepath, "\n"; ?>
|
||||
Line Number: <?php echo $line; ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Executable
+64
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>404 Page Not Found</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+64
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Database Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>An uncaught Exception was encountered</h4>
|
||||
|
||||
<p>Type: <?php echo get_class($exception); ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $exception->getFile(); ?></p>
|
||||
<p>Line Number: <?php echo $exception->getLine(); ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file']; ?><br />
|
||||
Line: <?php echo $error['line']; ?><br />
|
||||
Function: <?php echo $error['function']; ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+33
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>A PHP Error was encountered</h4>
|
||||
|
||||
<p>Severity: <?php echo $severity; ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $filepath; ?></p>
|
||||
<p>Line Number: <?php echo $line; ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file'] ?><br />
|
||||
Line: <?php echo $error['line'] ?><br />
|
||||
Function: <?php echo $error['function'] ?>
|
||||
</p>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<?php
|
||||
foreach($css_files as $file): ?>
|
||||
<link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
|
||||
<?php endforeach; ?>
|
||||
<?php foreach($js_files as $file): ?>
|
||||
<script src="<?php echo $file; ?>"></script>
|
||||
<?php endforeach; ?>
|
||||
<style type='text/css'>
|
||||
body
|
||||
{
|
||||
font-family: Arial;
|
||||
font-size: 14px;
|
||||
}
|
||||
a {
|
||||
color: blue;
|
||||
text-decoration: none;
|
||||
font-size: 14px;
|
||||
}
|
||||
a:hover
|
||||
{
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<a href='<?php echo site_url('examples/customers_management')?>'>Customers</a> |
|
||||
<a href='<?php echo site_url('examples/orders_management')?>'>Orders</a> |
|
||||
<a href='<?php echo site_url('examples/products_management')?>'>Products</a> |
|
||||
<a href='<?php echo site_url('examples/offices_management')?>'>Offices</a> |
|
||||
<a href='<?php echo site_url('examples/employees_management')?>'>Employees</a> |
|
||||
<a href='<?php echo site_url('examples/film_management')?>'>Films</a> |
|
||||
<a href='<?php echo site_url('examples/multigrids')?>'>Multigrid [BETA]</a>
|
||||
|
||||
</div>
|
||||
<div style='height:20px;'></div>
|
||||
<div>
|
||||
<?php echo $output; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,130 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo $this->config->item('nama_aplikasi');?></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Administrator PORTAL Ujian Nasional 2014">
|
||||
<meta name="keywords" content="portal un, portal un banten, ujian nasional, pengumuman ujian nasional 2014">
|
||||
<meta name="author" content="Deddy Rusdiansyah">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="<?php echo base_url();?>asset/favicon.ico" />
|
||||
<!-- Bootstrap -->
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>asset/css/bootstrap-checkbox.css" >
|
||||
|
||||
<link href="<?php echo base_url();?>asset/css/bootstrap.css" rel="stylesheet" media="screen">
|
||||
<link href="<?php echo base_url();?>asset/css/bootstrap-box.css" rel="stylesheet" media="screen">
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>asset/css/bootstrap-responsive.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>asset/css/custom.css" />
|
||||
<link type="text/css" href="<?php echo base_url();?>asset/css/custom-theme/jquery-ui-1.10.0.custom.css" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>asset/css/bootstrap-notify.css" />
|
||||
<link type="text/css" href="<?php echo base_url();?>asset/css/font-awesome.min.css" rel="stylesheet" />
|
||||
<link href="<?php echo base_url();?>asset/css/docs.css" rel="stylesheet">
|
||||
|
||||
|
||||
<link href="<?php echo base_url();?>asset/js/google-code-prettify/prettify.css" rel="stylesheet">
|
||||
|
||||
<script src="<?php echo base_url(); ?>asset/js/jquery-1.9.0.min.js" type="text/javascript"></script>
|
||||
<script src="<?php echo base_url(); ?>asset/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="<?php echo base_url(); ?>asset/js/jquery-ui-1.10.0.custom.min.js" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript" src="<?php echo base_url();?>asset/js/bootstrap-checkbox.js"></script>
|
||||
|
||||
|
||||
<script src="<?php echo base_url();?>asset/js/jquery.js"></script>
|
||||
<script src="<?php echo base_url();?>asset/js/bootstrap.min.js"></script>
|
||||
<script src="<?php echo base_url();?>asset/js/jquery-ui-1.10.0.custom.min.js" type="text/javascript"></script>
|
||||
<script src="<?php echo base_url();?>asset/js/google-code-prettify/prettify.js" type="text/javascript"></script>
|
||||
<script src="<?php echo base_url();?>asset/js/docs.js" type="text/javascript"></script>
|
||||
|
||||
|
||||
|
||||
<script src="<?php echo base_url();?>asset/js/ajaxfileupload.js" type="text/javascript"></script>
|
||||
|
||||
<script src="<?php echo base_url();?>asset/js/bootstrap-notify.js" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript" src="<?php echo base_url();?>asset/tinymce/tinymce.min.js"></script>
|
||||
|
||||
|
||||
<script src="<?php echo base_url(); ?>asset/js/bootstrap-scrollspy.js"></script>
|
||||
|
||||
|
||||
<script src="<?php echo base_url(); ?>asset/js/ui.datepicker-id.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
});
|
||||
$(function () {
|
||||
//####### Buttons
|
||||
$('button,.button,#sampleButton').button();
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class='notifications bottom-right'></div>
|
||||
<div class='notifications top-right'></div>
|
||||
<div class="navbar navbar-fixed-top">
|
||||
<div class="navbar-inner">
|
||||
<div class="container">
|
||||
<a href="<?php echo base_url(); ?>" class="brand">easyRDF</a>
|
||||
|
||||
<a data-toggle="collapse" data-target=".nav-collapse" class="btn btn-navbar">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>
|
||||
|
||||
<div class="collapse nav-collapse">
|
||||
<ul class="nav pull-left">
|
||||
|
||||
<li class="dropdown" id="preview-menu"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i> Examples <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="<?php echo base_url(); ?>index.php/rdf/basic"><i class="icon-star"></i> Basic</a></li>
|
||||
<li><a href="<?php echo base_url(); ?>index.php/rdf/basic/sparql"><i class="icon-star"></i> Sparql</a></li>
|
||||
<li><a href="<?php echo base_url(); ?>index.php/rdf/basic/foafinfo"><i class="icon-star"></i> Foafinfo</a></li>
|
||||
<li><a href="<?php echo base_url(); ?>index.php/rdf/basic/foafmaker"><i class="icon-star"></i> Foafmaker</a></li>
|
||||
<li><a href="<?php echo base_url(); ?>index.php/rdf/basic/converter"><i class="icon-star"></i> Converter</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="nav pull-right">
|
||||
<li class="active"><a href="#"><i class="icon-home"></i> Home</a></li>
|
||||
|
||||
|
||||
<li class="dropdown" id="preview-menu"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i> Hello, <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#"><i class="icon-plus"></i> User</a></li>
|
||||
<li><a href="#"><i class="icon-download"></i> Backup Database</a></li>
|
||||
<li><a href="#"><i class="icon-off"></i> Logout</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- end navbar -->
|
||||
|
||||
<!-- FEATURED PRODUCT -->
|
||||
<section>
|
||||
<div class="container">
|
||||
<div class="bootstrap-widget">
|
||||
<?php echo $content;?>
|
||||
</div>
|
||||
</div> <!-- end container -->
|
||||
</section>
|
||||
|
||||
|
||||
<div class="container">
|
||||
<!-- FOOTER -->
|
||||
<section>
|
||||
<p class="text-center muted">© Copyright 2014 - <br>Created By : <a href="http://ndesostyle.wordpress.com" target="_blank">Slamet Nurhadi</a><br>Page rendered in <strong>{elapsed_time}</strong> seconds</p>
|
||||
</section>
|
||||
</div> <!-- end container -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
echo "\n",$person_item->titelpre,"\n";
|
||||
echo $person_item->vorname,' ';
|
||||
echo $person_item->nachname;
|
||||
@@ -0,0 +1,11 @@
|
||||
<h2><?php echo $title ?></h2>
|
||||
|
||||
<?php foreach ($person as $person_item): ?>
|
||||
|
||||
<h3><?php echo $person_item->titelpre ?></h3>
|
||||
<div class="main">
|
||||
<?php echo $person_item->vorname,' ',$person_item->nachname ?>
|
||||
</div>
|
||||
<p><a href="<?php echo 'person/',$person_item->person_id ?>">View Person</a></p>
|
||||
|
||||
<?php endforeach ?>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
echo '<h2>'.$person_item->titelpre.'</h2>';
|
||||
echo $person_item->vorname;
|
||||
echo $person_item->nachname;
|
||||
@@ -0,0 +1,54 @@
|
||||
<style type="text/css">
|
||||
.table tr th {
|
||||
text-align:center;
|
||||
background: -moz-linear-gradient(top, #FAFAFA 0%, #E9E9E9 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #FAFAFA), color-stop(100%, #E9E9E9));background: -webkit-linear-gradient(top, #FAFAFA 0%, #E9E9E9 100%);
|
||||
background: -o-linear-gradient(top, #FAFAFA 0%, #E9E9E9 100%);
|
||||
background: -ms-linear-gradient(top, #FAFAFA 0%, #E9E9E9 100%);
|
||||
background: linear-gradient(top, #FAFAFA 0%, #E9E9E9 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#FAFAFA', endColorstr = '#E9E9E9');-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#FAFAFA', endColorstr='#E9E9E9')";
|
||||
border: 1px solid #D5D5D5;
|
||||
}
|
||||
</style>
|
||||
<div class="bootstrap-widget-header">
|
||||
<i class="icon-home icon-white"></i><h3></h3>
|
||||
</div>
|
||||
<div class="bootstrap-widget-content">
|
||||
<div class="container">
|
||||
<div class="pull-left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<table class="table table-condensed table-hover table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th class="span4">Name</th>
|
||||
<th class="span4">Give Name</th>
|
||||
<th class="span4">Family Name</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$foaf = EasyRdf_Graph::newAndLoad('http://njh.me/foaf.rdf');
|
||||
$me = $foaf->primaryTopic();
|
||||
?>
|
||||
<tr>
|
||||
|
||||
<td> <?php echo $me->get('foaf:name') ?></td>
|
||||
<td> <?= $me->get('foaf:givenName') ?> </td>
|
||||
<td> <?= $me->get('foaf:familyName') ?></td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,74 @@
|
||||
<style type="text/css">
|
||||
.table tr th {
|
||||
text-align:center;
|
||||
background: -moz-linear-gradient(top, #FAFAFA 0%, #E9E9E9 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #FAFAFA), color-stop(100%, #E9E9E9));background: -webkit-linear-gradient(top, #FAFAFA 0%, #E9E9E9 100%);
|
||||
background: -o-linear-gradient(top, #FAFAFA 0%, #E9E9E9 100%);
|
||||
background: -ms-linear-gradient(top, #FAFAFA 0%, #E9E9E9 100%);
|
||||
background: linear-gradient(top, #FAFAFA 0%, #E9E9E9 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#FAFAFA', endColorstr = '#E9E9E9');-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#FAFAFA', endColorstr='#E9E9E9')";
|
||||
border: 1px solid #D5D5D5;
|
||||
}
|
||||
</style>
|
||||
<div class="bootstrap-widget-header">
|
||||
<i class="icon-home icon-white"></i><h3></h3>
|
||||
</div>
|
||||
<div class="bootstrap-widget-content">
|
||||
<div class="container">
|
||||
<div class="pull-left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<table class="table table-condensed table-hover table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th class="span4">Label</th>
|
||||
<th class="span4">Country</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
EasyRdf_Namespace::set('category', 'http://dbpedia.org/resource/Category:');
|
||||
EasyRdf_Namespace::set('dbpedia', 'http://dbpedia.org/resource/');
|
||||
EasyRdf_Namespace::set('dbo', 'http://dbpedia.org/ontology/');
|
||||
EasyRdf_Namespace::set('dbp', 'http://dbpedia.org/property/');
|
||||
|
||||
$sparql = new EasyRdf_Sparql_Client('http://dbpedia.org/sparql');
|
||||
|
||||
|
||||
$result = $sparql->query(
|
||||
'SELECT * WHERE {'.
|
||||
' ?country rdf:type dbo:Country .'.
|
||||
' ?country rdfs:label ?label .'.
|
||||
' ?country dc:subject category:Member_states_of_the_United_Nations .'.
|
||||
' FILTER ( lang(?label) = "en" )'.
|
||||
'} ORDER BY ?label'
|
||||
);
|
||||
|
||||
?>
|
||||
Total number of countries: <?= $result->numRows() ?>
|
||||
<?php foreach ($result as $row ): ?>
|
||||
<tr>
|
||||
<td> <a href="http://dbpedia.org/resource/<?php echo $row->label ?>"><?php echo $row->label ?></a></td>
|
||||
<td><a href="http://dbpedia.org/resource/"> <?php echo $row->country ?></td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,112 @@
|
||||
<div class="bootstrap-widget-header">
|
||||
<i class="icon-home icon-white"></i><h3>Converter</h3>
|
||||
</div>
|
||||
<div class="bootstrap-widget-content">
|
||||
<div class="container">
|
||||
<div class="pull-left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Convert RDF from one format to another
|
||||
*
|
||||
* The source RDF data can either be fetched from the web
|
||||
* or typed into the Input box.
|
||||
*
|
||||
* The first thing that this script does is make a list the names of the
|
||||
* supported input and output formats. These options are then
|
||||
* displayed on the HTML form.
|
||||
*
|
||||
* The input data is loaded or parsed into an EasyRdf_Graph.
|
||||
* That graph is than outputted again in the desired output format.
|
||||
*
|
||||
* @package EasyRdf
|
||||
* @copyright Copyright (c) 2009-2013 Nicholas J Humfrey
|
||||
* @license http://unlicense.org/
|
||||
*/
|
||||
|
||||
// set_include_path(get_include_path() . PATH_SEPARATOR . '../lib/');
|
||||
|
||||
echo $this->load->view('rdf/html_tag_helpers');
|
||||
|
||||
$input_format_options = array('Guess' => 'guess');
|
||||
$output_format_options = array();
|
||||
foreach (EasyRdf_Format::getFormats() as $format) {
|
||||
if ($format->getSerialiserClass()) {
|
||||
$output_format_options[$format->getLabel()] = $format->getName();
|
||||
}
|
||||
if ($format->getParserClass()) {
|
||||
$input_format_options[$format->getLabel()] = $format->getName();
|
||||
}
|
||||
}
|
||||
|
||||
// Stupid PHP :(
|
||||
if (get_magic_quotes_gpc() and isset($_REQUEST['data'])) {
|
||||
$_REQUEST['data'] = stripslashes($_REQUEST['data']);
|
||||
}
|
||||
|
||||
// Default to Guess input and Turtle output
|
||||
if (!isset($_REQUEST['output_format'])) {
|
||||
$_REQUEST['output_format'] = 'turtle';
|
||||
}
|
||||
if (!isset($_REQUEST['input_format'])) {
|
||||
$_REQUEST['input_format'] = 'guess';
|
||||
}
|
||||
|
||||
// Display the form, if raw option isn't set
|
||||
if (!isset($_REQUEST['raw'])) {
|
||||
print "<html>\n";
|
||||
print "<head><title>EasyRdf Converter</title></head>\n";
|
||||
print "<body>\n";
|
||||
print "<h1>EasyRdf Converter</h1>\n";
|
||||
|
||||
print "<div style='margin: 10px'>\n";
|
||||
print form_tag();
|
||||
print label_tag('data', 'Input Data: ').'<br />'.text_area_tag('data', '', array('cols'=>30, 'rows'=>10)) . "<br />\n";
|
||||
print label_tag('uri', 'or Uri: ').text_field_tag('uri', 'http://www.dajobe.org/foaf.rdf', array('size'=>80)) . "<br />\n";
|
||||
print label_tag('input_format', 'Input Format: ').select_tag('input_format', $input_format_options) . "<br />\n";
|
||||
print label_tag('output_format', 'Output Format: ').select_tag('output_format', $output_format_options) . "<br />\n";
|
||||
print label_tag('raw', 'Raw Output: ').check_box_tag('raw') . "<br />\n";
|
||||
print reset_tag() . submit_tag();
|
||||
print form_end_tag();
|
||||
print "</div>\n";
|
||||
}
|
||||
|
||||
if (isset($_REQUEST['uri']) or isset($_REQUEST['data'])) {
|
||||
// Parse the input
|
||||
$graph = new EasyRdf_Graph($_REQUEST['uri']);
|
||||
if (empty($_REQUEST['data'])) {
|
||||
$graph->load($_REQUEST['uri'], $_REQUEST['input_format']);
|
||||
} else {
|
||||
$graph->parse($_REQUEST['data'], $_REQUEST['input_format'], $_REQUEST['uri']);
|
||||
}
|
||||
|
||||
// Lookup the output format
|
||||
$format = EasyRdf_Format::getFormat($_REQUEST['output_format']);
|
||||
|
||||
// Serialise to the new output format
|
||||
$output = $graph->serialise($format);
|
||||
if (!is_scalar($output)) {
|
||||
$output = var_export($output, true);
|
||||
}
|
||||
|
||||
// Send the output back to the client
|
||||
if (isset($_REQUEST['raw'])) {
|
||||
header('Content-Type: '.$format->getDefaultMimeType());
|
||||
print $output;
|
||||
} else {
|
||||
print '<pre>'.htmlspecialchars($output).'</pre>';
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($_REQUEST['raw'])) {
|
||||
print "</body>\n";
|
||||
print "</html>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
@@ -0,0 +1,124 @@
|
||||
|
||||
<div class="bootstrap-widget-header">
|
||||
<i class="icon-home icon-white"></i><h3></h3>
|
||||
</div>
|
||||
<div class="bootstrap-widget-content">
|
||||
<div class="container">
|
||||
<div class="pull-left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<form name="my-form" id="my-form" action="#" method="post" enctype="multipart/form-data">
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="kategori">FOAF</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="uri" name="uri" class="span3" value="http://njh.me/foaf.rdf">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button type="submit" name="simpan" class="btn btn-info btn-small"><i class="icon-ok-circle"></i> Simpan</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<h3>FOAF me</h3>
|
||||
<?php
|
||||
|
||||
echo $this->load->view('rdf/html_tag_helpers');
|
||||
|
||||
|
||||
if(isset($_REQUEST['uri'])): ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php $graph = EasyRdf_Graph::newAndLoad($_REQUEST['uri']); ?>
|
||||
|
||||
<?php if ($graph->type() == 'foaf:PersonalProfileDocument'): ?>
|
||||
<?php echo $person = $graph->primaryTopic(); ?>
|
||||
<?php elseif ($graph->type() == 'foaf:Person'): ?>
|
||||
<?php echo $person = $graph->resource(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<!-- Start -->
|
||||
|
||||
<?php if (isset($person)): ?>
|
||||
|
||||
|
||||
<table class="table table-condensed table-hover table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th class="span4">Name</th>
|
||||
<th class="span4">Homepage</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><?= $person->get('foaf:name') ?> </td>
|
||||
<td><a href="<?= $person->get('foaf:homepage') ?>"> <?= $person->get('foaf:homepage') ?></td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<!-- NEw Format -->
|
||||
<h3>Known Person</h3>
|
||||
|
||||
<?php foreach ($person->all('foaf:knows') as $friend) {
|
||||
$label = $friend->label();
|
||||
|
||||
if (!$label) {
|
||||
$label = $friend->getUri();
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<table class="table table-condensed table-hover table-bordered table-striped">
|
||||
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<?php if($friend->isBNode()): ?>
|
||||
<td><?= $label ?></td>
|
||||
<?php else: ?>
|
||||
|
||||
<?php echo "<li>".link_to_self($label, 'uri='.urlencode($friend))."</li>"; ?>
|
||||
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
} ?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--endif paling atas-->
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,121 @@
|
||||
<div class="bootstrap-widget-header">
|
||||
<i class="icon-home icon-white"></i><h3>EasyRdf FOAF Maker Example</h3>
|
||||
</div>
|
||||
<div class="bootstrap-widget-content">
|
||||
<div class="container">
|
||||
<div class="pull-left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
/**
|
||||
* Construct a FOAF document with a choice of serialisations
|
||||
*
|
||||
* This example is similar in concept to Leigh Dodds' FOAF-a-Matic.
|
||||
* The fields in the HTML form are inserted into an empty
|
||||
* EasyRdf_Graph and then serialised to the chosen format.
|
||||
*
|
||||
* @package EasyRdf
|
||||
* @copyright Copyright (c) 2009-2013 Nicholas J Humfrey
|
||||
* @license http://unlicense.org/
|
||||
*/
|
||||
|
||||
// set_include_path(get_include_path() . PATH_SEPARATOR . '../lib/');
|
||||
|
||||
echo $this->load->view('rdf/html_tag_helpers');
|
||||
|
||||
if (isset($_REQUEST['enable_arc']) && $_REQUEST['enable_arc']) {
|
||||
require_once "EasyRdf/Serialiser/Arc.php";
|
||||
EasyRdf_Format::registerSerialiser('ntriples', 'EasyRdf_Serialiser_Arc');
|
||||
EasyRdf_Format::registerSerialiser('posh', 'EasyRdf_Serialiser_Arc');
|
||||
EasyRdf_Format::registerSerialiser('rdfxml', 'EasyRdf_Serialiser_Arc');
|
||||
EasyRdf_Format::registerSerialiser('turtle', 'EasyRdf_Serialiser_Arc');
|
||||
}
|
||||
|
||||
if (isset($_REQUEST['enable_rapper']) && $_REQUEST['enable_rapper']) {
|
||||
require_once "EasyRdf/Serialiser/Rapper.php";
|
||||
EasyRdf_Format::registerSerialiser('dot', 'EasyRdf_Serialiser_Rapper');
|
||||
EasyRdf_Format::registerSerialiser('rdfxml', 'EasyRdf_Serialiser_Rapper');
|
||||
EasyRdf_Format::registerSerialiser('turtle', 'EasyRdf_Serialiser_Rapper');
|
||||
}
|
||||
|
||||
$format_options = array();
|
||||
foreach (EasyRdf_Format::getFormats() as $format) {
|
||||
if ($format->getSerialiserClass()) {
|
||||
$format_options[$format->getLabel()] = $format->getName();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<h1></h1>
|
||||
|
||||
<?= form_tag(null, array('method' => 'POST')) ?>
|
||||
|
||||
<h2>Your Identifier</h2>
|
||||
<?= labeled_text_field_tag('uri', 'http://www.example.com/joe#me', array('size'=>40)) ?><br />
|
||||
|
||||
<h2>Your details</h2>
|
||||
<?= labeled_text_field_tag('title', 'Mr', array('size'=>8)) ?><br />
|
||||
<?= labeled_text_field_tag('given_name', 'Joseph') ?><br />
|
||||
<?= labeled_text_field_tag('family_name', 'Bloggs') ?><br />
|
||||
<?= labeled_text_field_tag('nickname', 'Joe') ?><br />
|
||||
<?= labeled_text_field_tag('email', '[email protected]') ?><br />
|
||||
<?= labeled_text_field_tag('homepage', 'http://www.example.com/', array('size'=>40)) ?><br />
|
||||
|
||||
<h2>People you know</h2>
|
||||
<?= labeled_text_field_tag('person_1', 'http://www.example.com/dave#me', array('size'=>40)) ?><br />
|
||||
<?= labeled_text_field_tag('person_2', '', array('size'=>40)) ?><br />
|
||||
<?= labeled_text_field_tag('person_3', '', array('size'=>40)) ?><br />
|
||||
<?= labeled_text_field_tag('person_4', '', array('size'=>40)) ?><br />
|
||||
|
||||
<h2>Output</h2>
|
||||
Enable Arc 2? <?= check_box_tag('enable_arc') ?><br />
|
||||
Enable Rapper? <?= check_box_tag('enable_rapper') ?><br />
|
||||
<?= label_tag('format').select_tag('format', $format_options, 'rdfxml') ?><br />
|
||||
|
||||
<?= submit_tag() ?>
|
||||
<?= form_end_tag() ?>
|
||||
|
||||
|
||||
<?php
|
||||
if (isset($_REQUEST['uri'])) {
|
||||
|
||||
$graph = new EasyRdf_Graph();
|
||||
|
||||
# 1st Technique
|
||||
$me = $graph->resource($_REQUEST['uri'], 'foaf:Person');
|
||||
$me->set('foaf:name', $_REQUEST['title'].' '.$_REQUEST['given_name'].' '.$_REQUEST['family_name']);
|
||||
if ($_REQUEST['email']) {
|
||||
$email = $graph->resource("mailto:".$_REQUEST['email']);
|
||||
$me->add('foaf:mbox', $email);
|
||||
}
|
||||
if ($_REQUEST['homepage']) {
|
||||
$homepage = $graph->resource($_REQUEST['homepage']);
|
||||
$me->add('foaf:homepage', $homepage);
|
||||
}
|
||||
|
||||
# 2nd Technique
|
||||
$graph->addLiteral($_REQUEST['uri'], 'foaf:title', $_REQUEST['title']);
|
||||
$graph->addLiteral($_REQUEST['uri'], 'foaf:givenname', $_REQUEST['given_name']);
|
||||
$graph->addLiteral($_REQUEST['uri'], 'foaf:family_name', $_REQUEST['family_name']);
|
||||
$graph->addLiteral($_REQUEST['uri'], 'foaf:nick', $_REQUEST['nickname']);
|
||||
|
||||
# Add friends
|
||||
for($i=1; $i<=4; $i++) {
|
||||
if ($_REQUEST["person_$i"]) {
|
||||
$person = $graph->resource($_REQUEST["person_$i"]);
|
||||
$graph->add($me, 'foaf:knows', $person);
|
||||
}
|
||||
}
|
||||
|
||||
# Finally output the graph
|
||||
$data = $graph->serialise($_REQUEST['format']);
|
||||
if (!is_scalar($data)) {
|
||||
$data = var_export($data, true);
|
||||
}
|
||||
print "<pre>".htmlspecialchars($data)."</pre>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,121 @@
|
||||
<div class="bootstrap-widget-header">
|
||||
<i class="icon-home icon-white"></i><h3>EasyRdf FOAF Maker Example</h3>
|
||||
</div>
|
||||
<div class="bootstrap-widget-content">
|
||||
<div class="container">
|
||||
<div class="pull-left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
/**
|
||||
* Construct a FOAF document with a choice of serialisations
|
||||
*
|
||||
* This example is similar in concept to Leigh Dodds' FOAF-a-Matic.
|
||||
* The fields in the HTML form are inserted into an empty
|
||||
* EasyRdf_Graph and then serialised to the chosen format.
|
||||
*
|
||||
* @package EasyRdf
|
||||
* @copyright Copyright (c) 2009-2013 Nicholas J Humfrey
|
||||
* @license http://unlicense.org/
|
||||
*/
|
||||
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib/');
|
||||
|
||||
echo $this->load->view('rdf/html_tag_helpers');
|
||||
|
||||
if (isset($_REQUEST['enable_arc']) && $_REQUEST['enable_arc']) {
|
||||
require_once "EasyRdf/Serialiser/Arc.php";
|
||||
EasyRdf_Format::registerSerialiser('ntriples', 'EasyRdf_Serialiser_Arc');
|
||||
EasyRdf_Format::registerSerialiser('posh', 'EasyRdf_Serialiser_Arc');
|
||||
EasyRdf_Format::registerSerialiser('rdfxml', 'EasyRdf_Serialiser_Arc');
|
||||
EasyRdf_Format::registerSerialiser('turtle', 'EasyRdf_Serialiser_Arc');
|
||||
}
|
||||
|
||||
if (isset($_REQUEST['enable_rapper']) && $_REQUEST['enable_rapper']) {
|
||||
require_once "EasyRdf/Serialiser/Rapper.php";
|
||||
EasyRdf_Format::registerSerialiser('dot', 'EasyRdf_Serialiser_Rapper');
|
||||
EasyRdf_Format::registerSerialiser('rdfxml', 'EasyRdf_Serialiser_Rapper');
|
||||
EasyRdf_Format::registerSerialiser('turtle', 'EasyRdf_Serialiser_Rapper');
|
||||
}
|
||||
|
||||
$format_options = array();
|
||||
foreach (EasyRdf_Format::getFormats() as $format) {
|
||||
if ($format->getSerialiserClass()) {
|
||||
$format_options[$format->getLabel()] = $format->getName();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<h1></h1>
|
||||
|
||||
<?= form_tag(null, array('method' => 'POST')) ?>
|
||||
|
||||
<h2>Your Identifier</h2>
|
||||
<?= labeled_text_field_tag('uri', 'http://www.example.com/joe#me', array('size'=>40)) ?><br />
|
||||
|
||||
<h2>Your details</h2>
|
||||
<?= labeled_text_field_tag('title', 'Mr', array('size'=>8)) ?><br />
|
||||
<?= labeled_text_field_tag('given_name', 'Joseph') ?><br />
|
||||
<?= labeled_text_field_tag('family_name', 'Bloggs') ?><br />
|
||||
<?= labeled_text_field_tag('nickname', 'Joe') ?><br />
|
||||
<?= labeled_text_field_tag('email', '[email protected]') ?><br />
|
||||
<?= labeled_text_field_tag('homepage', 'http://www.example.com/', array('size'=>40)) ?><br />
|
||||
|
||||
<h2>People you know</h2>
|
||||
<?= labeled_text_field_tag('person_1', 'http://www.example.com/dave#me', array('size'=>40)) ?><br />
|
||||
<?= labeled_text_field_tag('person_2', '', array('size'=>40)) ?><br />
|
||||
<?= labeled_text_field_tag('person_3', '', array('size'=>40)) ?><br />
|
||||
<?= labeled_text_field_tag('person_4', '', array('size'=>40)) ?><br />
|
||||
|
||||
<h2>Output</h2>
|
||||
Enable Arc 2? <?= check_box_tag('enable_arc') ?><br />
|
||||
Enable Rapper? <?= check_box_tag('enable_rapper') ?><br />
|
||||
<?= label_tag('format').select_tag('format', $format_options, 'rdfxml') ?><br />
|
||||
|
||||
<?= submit_tag() ?>
|
||||
<?= form_end_tag() ?>
|
||||
|
||||
|
||||
<?php
|
||||
if (isset($_REQUEST['uri'])) {
|
||||
|
||||
$graph = new EasyRdf_Graph();
|
||||
|
||||
# 1st Technique
|
||||
$me = $graph->resource($_REQUEST['uri'], 'foaf:Person');
|
||||
$me->set('foaf:name', $_REQUEST['title'].' '.$_REQUEST['given_name'].' '.$_REQUEST['family_name']);
|
||||
if ($_REQUEST['email']) {
|
||||
$email = $graph->resource("mailto:".$_REQUEST['email']);
|
||||
$me->add('foaf:mbox', $email);
|
||||
}
|
||||
if ($_REQUEST['homepage']) {
|
||||
$homepage = $graph->resource($_REQUEST['homepage']);
|
||||
$me->add('foaf:homepage', $homepage);
|
||||
}
|
||||
|
||||
# 2nd Technique
|
||||
$graph->addLiteral($_REQUEST['uri'], 'foaf:title', $_REQUEST['title']);
|
||||
$graph->addLiteral($_REQUEST['uri'], 'foaf:givenname', $_REQUEST['given_name']);
|
||||
$graph->addLiteral($_REQUEST['uri'], 'foaf:family_name', $_REQUEST['family_name']);
|
||||
$graph->addLiteral($_REQUEST['uri'], 'foaf:nick', $_REQUEST['nickname']);
|
||||
|
||||
# Add friends
|
||||
for($i=1; $i<=4; $i++) {
|
||||
if ($_REQUEST["person_$i"]) {
|
||||
$person = $graph->resource($_REQUEST["person_$i"]);
|
||||
$graph->add($me, 'foaf:knows', $person);
|
||||
}
|
||||
}
|
||||
|
||||
# Finally output the graph
|
||||
$data = $graph->serialise($_REQUEST['format']);
|
||||
if (!is_scalar($data)) {
|
||||
$data = var_export($data, true);
|
||||
}
|
||||
print "<pre>".htmlspecialchars($data)."</pre>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,218 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Rails Style html tag helpers
|
||||
*
|
||||
* These are used by the other examples to make the code
|
||||
* more concise and simpler to read.
|
||||
*
|
||||
* @copyright Copyright (c) 2009-2013 Nicholas J Humfrey
|
||||
* @license http://unlicense.org/
|
||||
*/
|
||||
|
||||
/* Examples:
|
||||
|
||||
echo content_tag('p','Paragraph Tag', array('class'=>'foo'));
|
||||
|
||||
echo tag('br');
|
||||
echo link_to('Hyperlink', 'http://www.example.com/?a=1&b=2');
|
||||
echo tag('br');
|
||||
|
||||
echo form_tag();
|
||||
|
||||
echo label_tag('first_name').text_field_tag('first_name', 'Joe').tag('br');
|
||||
echo label_tag('password').password_field_tag().tag('br');
|
||||
|
||||
echo label_tag('radio1_value1', 'Radio 1').radio_button_tag('radio1', 'value1').tag('br');
|
||||
echo label_tag('radio1_value2', 'Radio 2').radio_button_tag('radio1', 'value2', true).tag('br');
|
||||
echo label_tag('radio1_value3', 'Radio 3').radio_button_tag('radio1', 'value3').tag('br');
|
||||
|
||||
echo label_tag('check1', 'Check 1').check_box_tag('check1', 'value1').tag('br');
|
||||
echo label_tag('check2', 'Check 2').check_box_tag('check2', 'value2', true).tag('br');
|
||||
echo label_tag('check3', 'Check 3').check_box_tag('check3', 'value3').tag('br');
|
||||
|
||||
$options = array('Label 1' => 'value1', 'Label 2' => 'value2', 'Label 3' => 'value3');
|
||||
echo label_tag('select1', 'Select Something:');
|
||||
echo select_tag('select1', $options, 'value2').tag('br');
|
||||
|
||||
echo label_tag('textarea1', 'Type Something:');
|
||||
echo text_area_tag('textarea1', "Hello World!").tag('br');
|
||||
|
||||
echo submit_tag();
|
||||
|
||||
echo form_end_tag();
|
||||
|
||||
*/
|
||||
|
||||
|
||||
function tag_options($options)
|
||||
{
|
||||
$html = "";
|
||||
foreach ($options as $key => $value) {
|
||||
if ($key and $value) {
|
||||
$html .= " ".htmlspecialchars($key)."=\"".
|
||||
htmlspecialchars($value)."\"";
|
||||
}
|
||||
}
|
||||
return $html;
|
||||
}
|
||||
|
||||
function tag($name, $options = array(), $open = false)
|
||||
{
|
||||
return "<$name".tag_options($options).($open ? ">" : " />");
|
||||
}
|
||||
|
||||
function content_tag($name, $content = null, $options = array())
|
||||
{
|
||||
return "<$name".tag_options($options).">".
|
||||
htmlspecialchars($content)."</$name>";
|
||||
}
|
||||
|
||||
function link_to($text, $uri = null, $options = array())
|
||||
{
|
||||
if ($uri == null) $uri = $text;
|
||||
$options = array_merge(array('href' => $uri), $options);
|
||||
return content_tag('a', $text, $options);
|
||||
}
|
||||
|
||||
function link_to_self($text, $query_string, $options = array())
|
||||
{
|
||||
return link_to($text, $_SERVER['PHP_SELF'].'?'.$query_string, $options);
|
||||
}
|
||||
|
||||
function image_tag($src, $options = array())
|
||||
{
|
||||
$options = array_merge(array('src' => $src), $options);
|
||||
return tag('img', $options);
|
||||
}
|
||||
|
||||
function input_tag($type, $name, $value = null, $options = array())
|
||||
{
|
||||
$options = array_merge(
|
||||
array(
|
||||
'type' => $type,
|
||||
'name' => $name,
|
||||
'id' => $name,
|
||||
'value' => $value
|
||||
),
|
||||
$options
|
||||
);
|
||||
return tag('input', $options);
|
||||
}
|
||||
|
||||
function text_field_tag($name, $default = null, $options = array())
|
||||
{
|
||||
$value = isset($_REQUEST[$name]) ? $_REQUEST[$name] : $default;
|
||||
return input_tag('text', $name, $value, $options);
|
||||
}
|
||||
|
||||
function text_area_tag($name, $default = null, $options = array())
|
||||
{
|
||||
$content = isset($_REQUEST[$name]) ? $_REQUEST[$name] : $default;
|
||||
$options = array_merge(
|
||||
array(
|
||||
'name' => $name,
|
||||
'id' => $name,
|
||||
'cols' => 60,
|
||||
'rows' => 5
|
||||
),
|
||||
$options
|
||||
);
|
||||
return content_tag('textarea', $content, $options);
|
||||
}
|
||||
|
||||
function hidden_field_tag($name, $default = null, $options = array())
|
||||
{
|
||||
$value = isset($_REQUEST[$name]) ? $_REQUEST[$name] : $default;
|
||||
return input_tag('hidden', $name, $value, $options);
|
||||
}
|
||||
|
||||
function password_field_tag($name = 'password', $default = null, $options = array())
|
||||
{
|
||||
$value = isset($_REQUEST[$name]) ? $_REQUEST[$name] : $default;
|
||||
return input_tag('password', $name, $value, $options);
|
||||
}
|
||||
|
||||
function radio_button_tag($name, $value, $default = false, $options = array())
|
||||
{
|
||||
if ((isset($_REQUEST[$name]) and $_REQUEST[$name] == $value) or
|
||||
(!isset($_REQUEST[$name]) and $default))
|
||||
{
|
||||
$options = array_merge(array('checked' => 'checked'), $options);
|
||||
}
|
||||
$options = array_merge(array('id' => $name.'_'.$value), $options);
|
||||
return input_tag('radio', $name, $value, $options);
|
||||
}
|
||||
|
||||
function check_box_tag($name, $value = '1', $default = false, $options = array())
|
||||
{
|
||||
if ((isset($_REQUEST[$name]) and $_REQUEST[$name] == $value) or
|
||||
(!isset($_REQUEST['submit']) and $default))
|
||||
{
|
||||
$options = array_merge(array('checked' => 'checked'),$options);
|
||||
}
|
||||
return input_tag('checkbox', $name, $value, $options);
|
||||
}
|
||||
|
||||
function submit_tag($name = '', $value = 'Submit', $options = array())
|
||||
{
|
||||
return input_tag('submit', $name, $value, $options);
|
||||
}
|
||||
|
||||
function reset_tag($name = '', $value = 'Reset', $options = array())
|
||||
{
|
||||
return input_tag('reset', $name, $value, $options);
|
||||
}
|
||||
|
||||
function label_tag($name, $text = null, $options = array())
|
||||
{
|
||||
if ($text == null) {
|
||||
$text = ucwords(str_replace('_', ' ', $name)).': ';
|
||||
}
|
||||
$options = array_merge(
|
||||
array('for' => $name, 'id' => "label_for_$name"),
|
||||
$options
|
||||
);
|
||||
return content_tag('label', $text, $options);
|
||||
}
|
||||
|
||||
function labeled_text_field_tag($name, $default = null, $options = array())
|
||||
{
|
||||
return label_tag($name).text_field_tag($name, $default, $options);
|
||||
}
|
||||
|
||||
function select_tag($name, $options, $default = null, $html_options = array())
|
||||
{
|
||||
$opts = '';
|
||||
foreach ($options as $key => $value) {
|
||||
$arr = array('value' => $value);
|
||||
if ((isset($_REQUEST[$name]) and $_REQUEST[$name] == $value) or
|
||||
(!isset($_REQUEST[$name]) and $default == $value))
|
||||
{
|
||||
$arr = array_merge(array('selected' => 'selected'),$arr);
|
||||
}
|
||||
$opts .= content_tag('option', $key, $arr);
|
||||
}
|
||||
$html_options = array_merge(
|
||||
array('name' => $name, 'id' => $name),
|
||||
$html_options
|
||||
);
|
||||
return "<select".tag_options($html_options).">$opts</select>";
|
||||
}
|
||||
|
||||
function form_tag($uri = null, $options = array())
|
||||
{
|
||||
if ($uri == null) {
|
||||
$uri = $_SERVER['PHP_SELF'];
|
||||
}
|
||||
$options = array_merge(
|
||||
array('method' => 'get', 'action' => $uri),
|
||||
$options
|
||||
);
|
||||
return tag('form', $options, true);
|
||||
}
|
||||
|
||||
function form_end_tag()
|
||||
{
|
||||
return "</form>";
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>harviacode.com - codeigniter crud generator</title>
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/bootstrap/css/bootstrap.min.css') ?>"/>
|
||||
<style>
|
||||
body{
|
||||
padding: 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2 style="margin-top:0px">Tbl_studiengang <?php echo $button ?></h2>
|
||||
<form action="<?php echo $action; ?>" method="post">
|
||||
<input type="hidden" name="" value="<?php echo $; ?>" />
|
||||
<button type="submit" class="btn btn-primary"><?php echo $button ?></button>
|
||||
<a href="<?php echo site_url('studiengang') ?>" class="btn btn-default">Cancel</a>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,71 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>harviacode.com - codeigniter crud generator</title>
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/bootstrap/css/bootstrap.min.css') ?>"/>
|
||||
<style>
|
||||
body{
|
||||
padding: 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2 style="margin-top:0px">Tbl_studiengang List</h2>
|
||||
<div class="row" style="margin-bottom: 10px">
|
||||
<div class="col-md-4">
|
||||
<?php echo anchor(site_url('studiengang/create'),'Create', 'class="btn btn-primary"'); ?>
|
||||
</div>
|
||||
<div class="col-md-4 text-center">
|
||||
<div style="margin-top: 8px" id="message">
|
||||
<?php echo $this->session->userdata('message') <> '' ? $this->session->userdata('message') : ''; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 text-right">
|
||||
<form action="<?php echo site_url('studiengang/search'); ?>" class="form-inline" method="post">
|
||||
<input name="keyword" class="form-control" value="<?php echo $keyword; ?>" />
|
||||
<?php
|
||||
if ($keyword <> '')
|
||||
{
|
||||
?>
|
||||
<a href="<?php echo site_url('studiengang'); ?>" class="btn btn-default">Reset</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<input type="submit" value="Search" class="btn btn-primary" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-bordered" style="margin-bottom: 10px">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Action</th>
|
||||
</tr><?php
|
||||
foreach ($studiengang_data as $studiengang)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo ++$start ?></td>
|
||||
<td style="text-align:center">
|
||||
<?php
|
||||
echo anchor(site_url('studiengang/read/'.$studiengang->),'Read');
|
||||
echo ' | ';
|
||||
echo anchor(site_url('studiengang/update/'.$studiengang->),'Update');
|
||||
echo ' | ';
|
||||
echo anchor(site_url('studiengang/delete/'.$studiengang->),'Delete','onclick="javasciprt: return confirm(\'Are You Sure ?\')"');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<a href="#" class="btn btn-primary">Total Record : <?php echo $total_rows ?></a>
|
||||
</div>
|
||||
<div class="col-md-6 text-right">
|
||||
<?php echo $pagination ?>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,18 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>harviacode.com - codeigniter crud generator</title>
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/bootstrap/css/bootstrap.min.css') ?>"/>
|
||||
<style>
|
||||
body{
|
||||
padding: 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2 style="margin-top:0px">Tbl_studiengang Read</h2>
|
||||
<table class="table">
|
||||
<tr><td></td><td><a href="<?php echo site_url('studiengang') ?>" class="btn btn-default">Cancel</button></td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>VileSci</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<link rel="stylesheet" href="../skin/vilesci.css" type="text/css" />
|
||||
<link rel="shortcut icon" href="../skin/images/Vilesci.ico" type="image/x-icon">
|
||||
</head>
|
||||
@@ -0,0 +1,13 @@
|
||||
<frameset rows="55px,*" frameborder="0" framespacing="0">
|
||||
<frame src="../vilesci/top.php" id="top" name="top" scrolling="No"/>
|
||||
<frameset border="4" frameborder="1" framespacing="0" cols="200px,*" >
|
||||
<frame style="border-right: 3px; border-right-style:solid; border-right-color: grey;" src="../vilesci/left.php" id="nav" name="nav" />
|
||||
<frame frameborder="1" src="../vilesci/main.php" id="main" name="main" />
|
||||
</frameset>
|
||||
<noframes>
|
||||
<body bgcolor="#FFFFFF">
|
||||
This application works only with a frames-enabled browser.<br />
|
||||
<a href="../vilesci/main.php">Use without frames</a>
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
Executable
+89
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome to CodeIgniter</title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#body {
|
||||
margin: 0 15px 0 15px;
|
||||
}
|
||||
|
||||
p.footer {
|
||||
text-align: right;
|
||||
font-size: 11px;
|
||||
border-top: 1px solid #D0D0D0;
|
||||
line-height: 32px;
|
||||
padding: 0 10px 0 10px;
|
||||
margin: 20px 0 0 0;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="container">
|
||||
<h1>Welcome to CodeIgniter!</h1>
|
||||
|
||||
<div id="body">
|
||||
<p>The page you are looking at is being generated dynamically by CodeIgniter.</p>
|
||||
|
||||
<p>If you would like to edit this page you'll find it located at:</p>
|
||||
<code>application/views/welcome_message.php</code>
|
||||
|
||||
<p>The corresponding controller for this page is found at:</p>
|
||||
<code>application/controllers/Welcome.php</code>
|
||||
|
||||
<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>
|
||||
</div>
|
||||
|
||||
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds. <?php echo (ENVIRONMENT === 'development') ? 'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user