Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="bn-BD">
- <head>
- <?php
- $css = base_url()."assets/css/";
- $js = base_url()."assets/js/";
- $img = base_url()."assets/img/";
- ?>
- <meta charset="UTF-8">
- <title>সরকারি/বেসরকারি পুকুর জরিপ ছক</title>
- <link rel="stylesheet" href="<?php echo $css . "/report_print.css"; ?>" type="text/css">
- <script src="<?php echo $js . "jquery-1.12.4.min.js" ?>"></script>
- </head>
- <body>
- <div class="search">
- <?php echo form_open("",array('id'=> 'searchform'));?>
- মাছ চাষের ধরন / প্রযুক্তি <select id="fishtype" name="fish_type">
- <option value="" selected="selected">নির্বাচন করুন</option>
- <?php foreach($tech as $key => $value): ?>
- <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
- <?php endforeach; ?>
- </select>
- ||
- পুকুরের ধরন
- <select name="pond_type">
- <option value="" selected="selected">নির্বাচন করুন</option>
- <?php foreach($pond_type as $key => $value): ?>
- <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
- <?php endforeach; ?>
- </select>
- ||
- মালিকানার ধরন
- <select name="ownership_type">
- <option value="" selected="selected">নির্বাচন করুন</option>
- <?php foreach($ownership as $key => $value): ?>
- <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
- <?php endforeach; ?>
- </select>
- || <button type="submit">Search</button>
- <?php echo form_close(); ?>
- </div>
- <table>
- <tr>
- <td rowspan="2">ক্র নং</td>
- <td rowspan="2">চাষীর ছবি</td>
- <td rowspan="2">মৎস্য চাষী/ প্রতিষ্ঠানের নাম</td>
- <td rowspan="2">ক) পিতা/স্বামীর নাম<br />খ) মাতার নাম</td>
- <td rowspan="2">ঠিকানা</td>
- <td rowspan="2">পুকুরের নাম</td>
- <td colspan="2">পুকুরের</td>
- <td rowspan="2">মালিকানার ধরন</td>
- <td rowspan="2">পুকুরের ধরন</td>
- <td rowspan="2">মাছ চাষের ধরন/প্রযুক্তি</td>
- <td rowspan="2">গত বছর হেক্টর প্রতি মাছের উৎপাদন (মে. টন)</td>
- <td rowspan="2">প্রতি হেক্টরে মাছের উৎপাদন (মে. টন)</td>
- <td rowspan="2">অন্যান্য মাছের মোট উৎপাদন (মে. টন)</td>
- <td rowspan="2">পুকুরের মোট মাছের উৎপাদন (মে. টন)</td>
- <td rowspan="2">মন্তব্য</td>
- </tr>
- <tr>
- <td>সংখ্যা (টি)</td><td>আয়তন (হেক্টর)</td>
- </tr>
- <?php
- $sl = 1;
- $totalProductionLastYear = 0;
- $grandTotalProduction = 0;
- $total_other_fish_production = 0;
- $total_production_per_hector = 0;
- $total_production =0;
- $grandTotalVolume = 0;
- foreach($owner_list as $owner):
- $fish_type = null;
- $ownership_type = null;
- $pond_typex = null;
- if($this->input->post("fish_type") != ""){
- $fish_type = $this->input->post("fish_type");
- }
- if($this->input->post("pond_type") != ""){
- $pond_typex = $this->input->post("pond_type");
- }
- if($this->input->post("ownership_type") != ""){
- $ownership_type = $this->input->post("ownership_type");
- }
- $ponds = $this->Pond_survey_model->filterPond($owner['id'],$fish_type,$pond_typex,$ownership_type);
- if(empty($ponds)) {
- }else{
- $total_volume = array_sum(array_map(function ($item) {
- return $item['pond_volume'];
- }, $ponds));
- $current_production = array_sum(array_map(function ($item) {
- return $item['current_production'];
- }, $ponds));
- $other_fish_production = array_sum(array_map(function ($item) {
- return $item['other_fish_production'];
- }, $ponds));
- $productionLastYear = array_sum(array_map(function ($item) {
- return $item['production_last_year'];
- }, $ponds));
- $total_production += ( $total_volume * $productionLastYear ) + $other_fish_production;
- //$totalProductionLastYear += $current_production;
- $total_production_per_hector += $current_production;
- $totalProductionLastYear += $productionLastYear;
- $total_other_fish_production += $other_fish_production;
- $grandTotalVolume += $total_volume;
- // $grandTotalProduction += $total_production ;
- $total_pond = count($ponds);
- ?>
- <tr>
- <td style="width: 2%;"><?php echo str_replace(range(0, 9), $bn_digits, $sl) ?></td>
- <td style="width: 5%"><img style="max-width: 100px; max-height: 100px;"
- src="<?php echo base_url() . "upload/farmer/";
- echo ($owner['owner_pic']) ? $owner['owner_pic'] : "no-pic.jpg"; ?>">
- </td>
- <td style="width: 10%"><?php echo $owner['farmer_name']; ?> <br /><?php echo $owner['mobile_no'] ?></td>
- <td style="width: 10%;">
- ক) <?php echo $owner['father_name']; ?><br>
- খ) <?php echo $owner['mother_name']; ?>
- </td>
- <td style="width: 8%"><?php echo $owner['address']; ?></td>
- <td style="width: 5%"><?php
- $slp = 1;
- foreach ($ponds as $pond) {
- echo str_replace(range(0, 9), $bn_digits, $slp) . ") " . str_replace(range(0, 9), $bn_digits, $pond['pond_name']) . "<br />\n";
- $slp++;
- }
- ?></td>
- <td style="width: 2%"><?php echo str_replace(range(0, 9), $bn_digits, $total_pond); ?></td>
- <td style="width: 5%"><?php
- $slp = 1;
- foreach ($ponds as $pond) {
- echo str_replace(range(0, 9), $bn_digits, $slp) . ") " . str_replace(range(0, 9), $bn_digits, $pond['pond_volume']) . "<br />\n";
- $slp++;
- }
- ?></td>
- <td style="width: 5%"><?php
- $slp = 1;
- foreach ($ponds as $pond) {
- echo str_replace(range(0, 9), $bn_digits, $slp) . ") " . $ownership[$pond['ownership_type']] . "<br />\n";
- $slp++;
- }
- ?></td>
- </td>
- <td style="width: 5%"><?php
- $slp = 1;
- foreach ($ponds as $pond) {
- echo str_replace(range(0, 9), $bn_digits, $slp) . ") " . $pond_type[(int)$pond['pond_type']] . "<br />\n";
- $slp++;
- }
- ?></td>
- <td style="width: 8%"><?php
- $slp = 1;
- foreach ($ponds as $pond) {
- echo str_replace(range(0, 9), $bn_digits, $slp) . ") " . $tech[$pond['fish_type']] . "<br />\n";
- $slp++;
- }
- ?></td>
- <td style="width: 5%"><?php
- $slp = 1;
- foreach ($ponds as $pond) {
- echo str_replace(range(0, 9), $bn_digits, $slp) . ") " . str_replace(range(0, 9), $bn_digits, number_format((float)$pond['production_last_year'], 2, '.', '')) . "<br />\n";
- $slp++;
- }
- ?></td>
- <td style="width: 5%"><?php
- $slp = 1;
- foreach ($ponds as $pond) {
- echo str_replace(range(0, 9), $bn_digits, $slp) . ") " . str_replace(range(0, 9), $bn_digits, number_format((float)$pond['current_production'], 2, '.', '')) . "<br />\n";
- $slp++;
- }
- ?></td>
- <td style="width: 5%"><?php
- $slp = 1;
- foreach ($ponds as $pond) {
- echo str_replace(range(0, 9), $bn_digits, $slp) . ") " . str_replace(range(0, 9), $bn_digits, number_format((float)$pond['other_fish_production'], 2, '.', '')) . "<br />\n";
- $slp++;
- }
- ?></td>
- <td style="width: 5%"><?php
- $slp = 1;
- foreach ($ponds as $pond) {
- echo str_replace(range(0, 9), $bn_digits, $slp) . ") " . str_replace(range(0, 9), $bn_digits, number_format(($pond['production_last_year'] * $pond['pond_volume']) + $pond['other_fish_production'], 2, '.', '')) . "<br />\n";
- $slp++;
- }
- ?></td>
- <td style="width: 5%"><?php
- $slp = 1;
- foreach ($ponds as $pond) {
- echo str_replace(range(0, 9), $bn_digits, $slp) . ") " . $pond['comment'] . "<br />\n";
- $slp++;
- }
- ?></td>
- </tr>
- <?php
- $sl++;
- }
- endforeach; ?>
- <tr class="total">
- <td>***</td>
- <td>***</td>
- <td>***</td>
- <td>***</td>
- <td>***</td>
- <td>***</td>
- <td>***</td>
- <td><?php echo str_replace(range(0, 9), $bn_digits, $total_volume); ?></td>
- <td>***</td>
- <td>***</td>
- <td>***</td>
- <td><?php echo str_replace(range(0, 9), $bn_digits, $totalProductionLastYear); ?></td>
- <td><?php echo str_replace(range(0, 9), $bn_digits, $total_production_per_hector); ?></td>
- <td><?php echo str_replace(range(0, 9), $bn_digits, $total_other_fish_production); ?></td>
- <td><?php echo str_replace(range(0, 9), $bn_digits, ($grandTotalVolume * $totalProductionLastYear) + $total_other_fish_production); ?></td>
- <td>***</td>
- </tr>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement