// $query1=\DB::table('user_bets')->select(DB::raw('sum(bet_amount) as bet_amount'))->where(array('bet_id'=>$row->id, 'bet_as'=>2)); //print_r($query);exit; ?> <div style="border:1px solid #009900; min-height: 30px; padding: 5px; "> <div class="left" style="width:5%"><?php echo $i; /*?><input type="checkbox" name="selId[]" id="selId" value="<?php echo $row->id;?>" /><?php */ ?> </div> <div class="left" style="width:50%"><?php echo $row->proposition_title ? displayText($row->proposition_title, 70) : 'N/A'; ?> </div> <div style="width:15%" class="left"><?php echo $row->match_name ? displayText($row->match_name, 30) : 'N/A'; ?> </div> <div class="left" style="width:10%"><?php echo date('d/m/Y', strtotime($row->created_at)); ?> </div> <div class="left" style="width:10%; text-align: center"> <a href="<?php ?> "><img src="<?php echo base_url(); ?> images/user_edit.png" /></a> <a href=""><img src="<?php
</div> <div class="left" style="width:25%"><?php echo $row->proposition_title ? displayText($row->proposition_title, 40) : 'N/A'; ?> </div> <div class="left" style="width:15%"><?php echo $row->user_name ? displayText($row->user_name, 30) : 'N/A'; ?> </div> <div class="left" style="width:10%"><?php echo $row->betting_code; ?> </div> <div class="left" style="width:10%; text-align: center"><?php echo $row->bet_amount ? displayText($row->bet_amount, 30) : 'N/A'; ?> </div> </div> <?php $i++; } ?> <?php } else { ?> <tr>
displayText("p4", ""); $pageNum = 1; } elseif ($_GET['page'] == 2) { displayText("p5", ""); displayText("p6", ""); displayText("p7", ""); displayText("p8", ""); $pageNum = 2; } elseif ($_GET['page'] == 3) { displayText("p9", ""); displayText("p10", ""); displayText("p11", ""); displayText("p12", ""); $pageNum = 3; } elseif ($_GET['page'] == "t") { displayText("t", $_GET['keyword']); $pageNum = "t"; } //end displaying main page text ?> </p> <br> <hr> <div align="right"> <strong> <?php if ($pageNum != "t") { echo "page " . $pageNum . " of 3 || "; } ?> <a href="index.php?page=1">1</a> <a href="index.php?page=2">2</a> <a href="index.php?page=3">3</a></strong></div></td>
<?php $message = "This is passed to the giventext function"; $valueUnchanged = 100; $refChanged = 500; $localVar = "Local"; $globalVar = "Global"; $globalArrayVar = "Global Array"; localTest(); globalTest(); globalArrayTest(); //listAllGlobalArray(); defaultValues(); echo "First value before function call 100?:" . $valueUnchanged . "<br/>"; echo "Second value before function call 500?:" . $refChanged . "<br/>"; displayText(); displayGivenText($message); refValFunction($valueUnchanged, $refChanged); echo "First value after function call 200?:" . $valueUnchanged . "<br/>"; echo "Second value after function call 1000?:" . $refChanged . "<br/>"; function defaultValues($name = 'Steve') { echo "Your default var is: " . $name . "<br/>"; } function localTest() { echo "Your local var is: " . $localVar . "<br/>"; } function globalTest() { global $globalVar;
} if ($layout == 'tabs') { $html .= '<div id="tabs-3">'; } if ($layout == 'plain') { $html .= '<h3>' . $translation["contact"] . '</h3>'; $html .= '<div>'; } $html .= '<p>'; $html .= $tableBegin; $html .= $t_a . $translation['contactOrganization'] . $t_b . displayText($resourceMetadata['contactorganization']) . $t_c; $html .= $t_a . $translation['contactPerson'] . $t_b . displayText($resourceMetadata['contactperson']) . $t_c; $html .= $t_a . $translation['contactAddress'] . $t_b . displayText($resourceMetadata['address']) . $t_c; $html .= $t_a . $translation['contactCity'] . $t_b . displayText($resourceMetadata['postcode'] . ' ' . $resourceMetadata['city']) . $t_c; $html .= $t_a . $translation['email'] . $t_b . displayText($resourceMetadata['contactelectronicmailaddress']) . $t_c; $html .= $t_a . $translation['contactTelephone'] . $t_b . displayText($resourceMetadata['contactvoicetelephone']) . $t_c; $html .= $tableEnd; $html .= '</p>'; $html .= '</div>'; //**************************contact part end****************************** //**************************termsOfUse part begin****************************** if ($layout == 'accordion') { $html .= '<h3><a href="#">' . $translation["termsOfUse"] . '</a></h3>'; $html .= '<div style="height:300px">'; } if ($layout == 'tabs') { $html .= '<div id="tabs-4">'; } if ($layout == 'plain') { $html .= '<div>'; }
</div> <?php $i = 1; foreach ($bowlerStats as $row) { ?> <div style="border:1px solid #009900; min-height: 40px; padding: 5px; "> <div class="left" style="width:5%"><?php echo $i; ?> </div> <div class="left" style="width:30%"><?php echo $row->player_name ? displayText($row->player_name, 30) : 'N/A'; ?> </div> <div style="width:25%;text-align:center" class="left"><a id="expanderHead"><?php echo $row->match_played; ?> </a></div> <div class="left" style="width:10%;text-align:center"><?php echo $row->overs; ?> </div> <div class="left" style="width:15%;text-align:center"><?php echo $row->runs_given; ?> </div>