예제 #1
0
	<![endif]-->
</head>
<body>
	
	<header>
		<?php 
include "templates/header.php";
?>
	</header>

	<div class="row-gov-party">
		<div class="container-fluid">
			<h3 class="text-center"><a href="list.php?list=party">Улс төрийн намууд</a></h3>
			<?php 
$party = new db_cn\Table("party");
$results = $party->select("id,title,acronym, logo_url");
$broken_results = break_array($results, 11);
foreach ($broken_results as $result) {
    echo "<div class='row-centered'>";
    foreach ($result as $res) {
        $party_img = "res/png/img_error.jpg";
        if (empty($res['logo_url'])) {
            $party_img = "res/png/img_error.jpg";
        } else {
            $party_img = "res/party/logos/" . $res['logo_url'];
        }
        ?>
					<div class="gov-party col-sm-1 col-centered">
						<div class="well well-xs center-block">
							<div class="gov-party-img-holder">
								<img src="<?php 
예제 #2
0
파일: laws.php 프로젝트: nandinod/Shilennam
	
	<div class="container" id="laws">
		<h1 class='text-center'>Хуулиас</h1>

		<p style="font-size: 18px;">
			Улс төрийн намуудын санхүүжилттэй холбоотой хуулийн заалтуудаас түүвэрлэн авч ашиглахад хялбар байдлаар бэлтгэлээ. Хуулийн эхтэй нь танилцахыг хүсвэл <a target="_blank" href="http://www.legalinfo.mn">www.legalinfo.mn</a> сайт руу орж үзнэ үү.
		</p>
		
		<ul class='list-group'>
			<li class='list-group-item'>
				<h4 style="font-size: 16px;"><a href='#' data-toggle="collapse" data-target="#country_laws" aria-expanded="false">УЛС ТӨРИЙН НАМЫН ТУХАЙ</a></h4>
				<div id="country_laws" class='collapse out'>
					<ul class="nav nav-list">
					<?php 
$laws = new db_cn\Table("laws");
foreach ($laws->select("text,sanctions", "source = 'УЛС ТӨРИЙН НАМЫН ТУХАЙ'") as $law) {
    ?>
						<li>
					  		<blockquote>
						    	<p><?php 
    echo $law['text'];
    ?>
</p>
					  		</blockquote>
				  		</li>
			  		<?php 
}
?>
			  		</ul>
		  		</div>
			</li>
예제 #3
0
				    	</div>
					</div>
					<!-- Editing of party economics ends here! -->

					<!-- Editing of companies starts here... -->
					<div class="panel panel-default">
				  		<div class="panel-heading" role="tab" id="edit-company-heading" data-toggle="collapse" data-target="#edit-company-collapse" data-parent="#accordion" aria-expanded="true" aria-controls="edit-company-collapse">
				  			<h4 class="panel-title">
				  				<a href="#collapseThree">
				  					Companies
				  				</a>
				  			</h4>
				  		</div>
				  		<div id="edit-company-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="edit-company-heading">
				  			<?php 
$result = $companies->select("*");
?>
				  			<div class="panel-body">
				  				<div class="table-responsive">
					  				<table class="table table-bordered table-hover">
						  				<tr>
						  					<th>id</th>
						  					<th>Company</th>
						  					<th>Register Code</th>
						  					<th>Sector Code</th>
						  					<th>Sector Name</th>
						  					<th>Org</th>
						  					<th>
												<button type="button" data-target="add_finance_modal" class="btn btn-primary text-center disabled">Add Company</button>
						  					</th>
						  				</tr>
예제 #4
0
}
?>
					      	</table>
					    </div>
				  	</div>
				  	<div class="panel panel-default">
				  		<div class="panel-heading" role="tab" id="headingThree" data-toggle="collapse" data-target="#collapseThree" data-parent="#accordion" aria-expanded="true" aria-controls="collapseThree">
				  			<h4 class="panel-title">
				  				<a href="#collapseThree">
				  					Companies
				  				</a>
				  			</h4>
				  		</div>
				  		<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
				  			<?php 
$result = $companies->select("id,company,sector_name");
?>
				  			<div class="panel-body">

				  			</div>
				  			<table class="table table-striped">
				  				<tr>
				  					<th>id</th>
				  					<th>Company</th>
				  					<th>Sector Name</th>
				  				</tr>
				  				<?php 
foreach ($result as $res) {
    echo "<tr>";
    echo "<td>" . $res['id'] . "</td>";
    echo "<td>" . $res['company'] . "</td>";
예제 #5
0
										<th>Ажилтан, ухуулагч, шадар туслагчийн хөлс, урамшуулал</th>
										<th>Бичиг хэрэг</th>
										<th>Шуудан холбоо</th>
										<th>Шатахуун, унаа</th>
										<th>Томилолт</th>
										<th>Бусад</th>
										<th>Зардлын дүн</th>
									</tr>
								<?php 
            if ($_GET['total_outcome'] == "request") {
                $outcomes_ids = $party_financial_list->select("outcomeid", "partyid = " . $p_id);
                foreach ($outcomes_ids as $outcomes_id) {
                    ?>
										
											<?php 
                    foreach ($outcome->select("*", "id = " . $outcomes_id['outcomeid']) as $row) {
                        echo "<tr>";
                        echo "<td>" . $row['presentation'] . "</td>";
                        echo "<td>" . $row['advertisement'] . "</td>";
                        echo "<td>" . $row['management'] . "</td>";
                        echo "<td>" . $row['employee_salary'] . "</td>";
                        echo "<td>" . $row['chancery'] . "</td>";
                        echo "<td>" . $row['mail_and_shipping'] . "</td>";
                        echo "<td>" . $row['transportation'] . "</td>";
                        echo "<td>" . $row['assignment'] . "</td>";
                        echo "<td>" . $row['other'] . "</td>";
                        echo "<td>" . $row['total'] . "</td>";
                        echo "</tr>";
                    }
                }
            }
예제 #6
0
     echo "</tr>";
     foreach ($result as $row) {
         echo "<tr>";
         echo "<td>" . $row['from_inside'] . "</td>";
         echo "<td>" . $row['from_candidate'] . "</td>";
         echo "<td>" . $row['from_people'] . "</td>";
         echo "<td>" . $row['other_parties'] . "</td>";
         echo "<td>" . $row['other'] . "</td>";
         echo "<td>" . $row['total'] . "</td>";
         echo "</tr>";
     }
     echo "</table>";
     echo "</div>";
 } else {
     if ($request == "outcome") {
         $result = $outcome->select("*", "id = " . $target_id);
         echo "<div class='table-responsive'>";
         echo "<table class='table table-condensed table-bordered table-hover' align='left'>";
         echo "<tr>";
         echo "<th>Нам, эвслийн мөрийн хөтөлбөрийг тайлбарлан таниулах</th>";
         echo "<th>Нэр дэвшигчийг сурталчлах</th>";
         echo "<th>Уулзалт, хурал цуглаан зохион байгуулах</th>";
         echo "<th>Ажилтан, ухуулагч, шадар туслагчийн хөлс, урамшуулал</th>";
         echo "<th>Бичиг хэрэг</th>";
         echo "<th>Шуудан холбоо</th>";
         echo "<th>Шатахуун, унаа</th>";
         echo "<th>Томилолт</th>";
         echo "<th>Бусад</th>";
         echo "<th>Зардлын дүн</th>";
         echo "</tr>";
         foreach ($result as $row) {
예제 #7
0
    {
    }
}
$action = isset($_POST['action']) ? $_POST['action'] : null;
if (isset($action)) {
    if ($action == "Add New Party Record") {
        $values = array("", "", "");
        $values[0] = "'" . $_POST['party-code'] . "'";
        $values[1] = "'" . $_POST['party-title'] . "'";
        $values[2] = "'" . $_POST['party-acronym'] . "'";
        Party_Editor::add($values);
        header('Location: ../manage/editor.php');
    }
    if ($action == "party_edit_get") {
        $id = isset($_POST['party_record_id']) ? $_POST['party_record_id'] : null;
        if (isset($id)) {
            $party = new \db_cn\Table("party");
            $values = $party->select("code,title,acronym", "id = " . $id);
            $print = "";
            foreach ($values as $value) {
                foreach ($value as $val) {
                    $print .= $val . "::";
                }
            }
            $print = substr($print, 0, -2);
            echo $print;
        }
    }
    if ($action == "party_edit") {
    }
}
예제 #8
0
<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
function getTagForResult($content = "")
{
    $data = "<li class='list-group-item'>";
    $data .= $content;
    $data .= "</li>";
    return $data;
}
$action = isset($_POST['action']) ? $_POST['action'] : "";
$keyword = isset($_POST['keyword']) ? $_POST['keyword'] : "";
if (!empty($action) && !empty($keyword)) {
    if ($action == "search_ediin") {
        require_once './DB_CN.php';
        $eza = new db_cn\Table("ediin_zasag_angi");
        $results = $eza->select("*", "type COLLATE UTF8_GENERAL_CI like '%{$keyword}%'");
        $full_data = "";
        foreach ($results as $res) {
            $full_data .= getTagForResult($res['type']);
        }
        echo $full_data;
    }
}
예제 #9
0
	<div id="slide" class="carousel slide" data-ride="carousel">
		<!-- Indicators -->
	    <ol class="carousel-indicators">
	      <li data-target="#slide" data-slide-to="0" class="active"></li>
	      <li data-target="#slide" data-slide-to="1"></li>
	      <li data-target="#slide" data-slide-to="2"></li>
	      <li data-target="#slide" data-slide-to="3"></li>
	    </ol>

	    <!-- Wrapper for slides -->
	    <div class="carousel-inner" role="listbox">
		<?php 
$for_once = false;
$laws = new db_cn\Table("laws");
$result = $laws->select("text,sanctions,source", "sanctions is not null");
for ($a = 0; $a < 4; $a++) {
    $randomIndex = rand(0, sizeof($result) - 1);
    $random3 = rand(1, 8);
    ?>
			<div class="item <?php 
    if ($for_once == false) {
        echo "active";
        $for_once = true;
    }
    ?>
">
		      	<img src="res/img/uugand_imgs/img<?php 
    echo $random3;
    ?>
.jpg" alt="Steppe" class="img-responsive">