Skip to content
Permalink
Browse files

modem if

  • Loading branch information...
root
root committed Jan 26, 2016
1 parent 4ab2483 commit e114429c67bcc828f3d9876ff53d405a2dc81266
Showing with 24 additions and 6 deletions.
  1. BIN map_example.jpg
  2. +24 −6 modules/settings/modem.php
0 map_example.jpg 100644 → 100755
No changes.
@@ -54,13 +54,23 @@ function submitform()

<?php
$db = new PDO('sqlite:dbf/nettemp.db');
$sth = $db->prepare("SELECT * FROM usb WHERE device='Modem SMS'");
$sth = $db->prepare("SELECT dev FROM usb WHERE device='Modem SMS'");
$sth->execute();
$result = $sth->fetchAll();
foreach ($result as $a) {
$smsdev=$a['dev'];
}
if (empty($smsdev) || $smsdev == 'none') { ?>
<div class="panel panel-default">
<div class="panel-heading">SMS modem</div>
<div class="panel-body">
No SMS modem set
<a href="index.php?id=devices&type=usb" class="btn btn-info btn-sm" role="button">Go to USB/Serial</a>
</div>
</div>
<?php
} else {
?>

<div class="panel panel-default"><div class="panel-heading">SMS modem <?php echo $smsdev." "?></div>
@@ -98,18 +108,26 @@ function submitform()

</div>
</div>




<?php
}
$db = new PDO('sqlite:dbf/nettemp.db');
$sth = $db->prepare("SELECT dev FROM usb WHERE device='Modem Call'");
$sth->execute();
$result = $sth->fetchAll();
foreach ($result as $a) {
$dev=$a['dev'];
}
if (empty($dev) || $dev == 'none') { ?>
<div class="panel panel-default">
<div class="panel-heading">Call modem</div>
<div class="panel-body">
No Call modem set <a href="index.php?id=devices&type=usb" class="btn btn-info btn-sm" role="button">Go to USB/Serial</a>
</div>
</div>
<?php
} else {
?>

<div class="panel panel-default"><div class="panel-heading">Call modem <?php echo $dev ?></div>
@@ -127,7 +145,7 @@ function submitform()
}
?>
<?php
//}
}
?>
</div>
</div>

0 comments on commit e114429

Please sign in to comment.
You can’t perform that action at this time.