Example #1
0
 <center>

<table style="width:1%">
  <tr>
  		
 
  </tr>
   <tr>
    <td>001</td>
    <td>:</td>
     <td>Masum</td>
      <td>:</td>
    <td>Dhaka</td>		
  
 	

  </tr>
  </center>

<?php 
function __autoload($className)
{
    $fullPath = $className . ".php";
    $finalDis = "/../../../" . str_replace("\\", "/", $fullPath);
    //echo $finalDis;
    include_once $finalDis;
}
use src\Bitm\SEIP117637\city\City;
$city = new city();
$city->update();
echo "<hr>";
Example #2
0
            $letter = $do->letter($r['name']);
            $db->query("UPDATE {$DT_PRE}city SET letter='{$letter}' WHERE areaid={$r['areaid']}");
        }
        dmsg('更新成功', '?file=' . $file);
        break;
    case 'delete':
        if ($areaid) {
            $areaids = $areaid;
        }
        $areaids or msg();
        $do->delete($areaids);
        dmsg('删除成功', '?file=' . $file);
        break;
    case 'update':
        foreach ($post as $v) {
            $do->update($v);
        }
        dmsg('更新成功', '?file=' . $file);
        break;
    default:
        $condition = '1';
        if ($kw) {
            $condition .= " AND (name LIKE '%{$keyword}%' OR domain LIKE '%{$keyword}%')";
        }
        $lists = $do->get_list($condition);
        include tpl('city');
        break;
}
class city
{
    var $areaid;