Version Notes
Poprawka wyświetlania stron wysyłki, danych konta i faktur.
Download this release
Release Info
Developer | SerwerSMS.pl |
Extension | SerwerSMSpl |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/code/community/SerwerSMS/Sms/Block/Adminhtml/Niewyslane/Grid.php +5 -2
- app/code/community/SerwerSMS/Sms/Block/Adminhtml/NiewyslaneGrid.php +2 -3
- app/code/community/SerwerSMS/Sms/Block/Adminhtml/Odpowiedzi/Grid.php +1 -2
- app/code/community/SerwerSMS/Sms/Block/Adminhtml/OdpowiedziGrid.php +2 -3
- app/code/community/SerwerSMS/Sms/Block/Adminhtml/Wyslane/Grid.php +5 -2
- app/code/community/SerwerSMS/Sms/Block/Adminhtml/WyslaneGrid.php +2 -3
- app/code/community/SerwerSMS/Sms/Block/Danekonta.php +5 -2
- app/code/community/SerwerSMS/Sms/Block/Wyslijsms.php +1 -2
- app/code/community/SerwerSMS/Sms/Helper/SerwerSMS.php +1 -2
- app/code/community/SerwerSMS/Sms/Model/Mysql4/OdpowiedziModel.php +1 -2
- app/code/community/SerwerSMS/Sms/Model/Mysql4/OdpowiedziModel/Collection.php +1 -2
- app/code/community/SerwerSMS/Sms/Model/Mysql4/SmsModel.php +1 -2
- app/code/community/SerwerSMS/Sms/Model/Mysql4/SmsModel/Collection.php +1 -2
- app/code/community/SerwerSMS/Sms/Model/Nadawcy.php +4 -4
- app/code/community/SerwerSMS/Sms/Model/Observer.php +1 -2
- app/code/community/SerwerSMS/Sms/Model/OdpowiedziModel.php +1 -2
- app/code/community/SerwerSMS/Sms/Model/SmsModel.php +1 -2
- app/code/community/SerwerSMS/Sms/controllers/Adminhtml/IndexController.php +8 -9
- app/code/community/SerwerSMS/Sms/controllers/OdpowiedziController.php +1 -2
- app/code/community/SerwerSMS/Sms/controllers/RaportController.php +1 -2
- app/code/community/SerwerSMS/Sms/etc/config.xml +17 -17
- app/code/community/SerwerSMS/Sms/sql/sms_setup/mysql4-install-1.0.0.php +1 -2
- app/design/adminhtml/default/default/layout/serwersms/sms.xml +22 -21
- app/design/adminhtml/default/default/template/serwersms/danekonta.phtml +1 -1
- app/design/adminhtml/default/default/template/serwersms/dodajnazwe.phtml +1 -1
- app/design/adminhtml/default/default/template/serwersms/faktury.phtml +4 -4
- app/design/adminhtml/default/default/template/serwersms/formularzsms.phtml +2 -2
- package.xml +7 -7
app/code/community/SerwerSMS/Sms/Block/Adminhtml/Niewyslane/Grid.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Block_Adminhtml_Niewyslane_Grid extends Mage_Adminhtml_Block_Widget_Grid{
|
@@ -81,6 +80,10 @@ class SerwerSMS_Sms_Block_Adminhtml_Niewyslane_Grid extends Mage_Adminhtml_Block
|
|
81 |
return parent::_prepareColumns();
|
82 |
}
|
83 |
|
|
|
|
|
|
|
|
|
84 |
}
|
85 |
|
86 |
?>
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Block_Adminhtml_Niewyslane_Grid extends Mage_Adminhtml_Block_Widget_Grid{
|
80 |
return parent::_prepareColumns();
|
81 |
}
|
82 |
|
83 |
+
// public function getRowUrl($row){
|
84 |
+
// return $this->getUrl('*/*/edit',array('id' => $row->getId()));
|
85 |
+
// }
|
86 |
+
|
87 |
}
|
88 |
|
89 |
?>
|
app/code/community/SerwerSMS/Sms/Block/Adminhtml/NiewyslaneGrid.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Block_Adminhtml_NiewyslaneGrid extends Mage_Adminhtml_Block_Widget_Grid_Container{
|
@@ -12,7 +11,7 @@ class SerwerSMS_Sms_Block_Adminhtml_NiewyslaneGrid extends Mage_Adminhtml_Block_
|
|
12 |
|
13 |
// gdzie jest kontroler
|
14 |
$this->_controller = 'adminhtml_niewyslane';
|
15 |
-
$this->_blockGroup = '
|
16 |
|
17 |
// tekst w naglowku admina
|
18 |
$this->_headerText = 'Wiadomości niewyslane';
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Block_Adminhtml_NiewyslaneGrid extends Mage_Adminhtml_Block_Widget_Grid_Container{
|
11 |
|
12 |
// gdzie jest kontroler
|
13 |
$this->_controller = 'adminhtml_niewyslane';
|
14 |
+
$this->_blockGroup = 'serwersms';
|
15 |
|
16 |
// tekst w naglowku admina
|
17 |
$this->_headerText = 'Wiadomości niewyslane';
|
app/code/community/SerwerSMS/Sms/Block/Adminhtml/Odpowiedzi/Grid.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Block_Adminhtml_Odpowiedzi_Grid extends Mage_Adminhtml_Block_Widget_Grid{
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Block_Adminhtml_Odpowiedzi_Grid extends Mage_Adminhtml_Block_Widget_Grid{
|
app/code/community/SerwerSMS/Sms/Block/Adminhtml/OdpowiedziGrid.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Block_Adminhtml_OdpowiedziGrid extends Mage_Adminhtml_Block_Widget_Grid_Container{
|
@@ -12,7 +11,7 @@ class SerwerSMS_Sms_Block_Adminhtml_OdpowiedziGrid extends Mage_Adminhtml_Block_
|
|
12 |
|
13 |
// gdzie jest kontroler
|
14 |
$this->_controller = 'adminhtml_odpowiedzi';
|
15 |
-
$this->_blockGroup = '
|
16 |
|
17 |
// tekst w naglowku admina
|
18 |
$this->_headerText = 'Odpowiedzi SMS';
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Block_Adminhtml_OdpowiedziGrid extends Mage_Adminhtml_Block_Widget_Grid_Container{
|
11 |
|
12 |
// gdzie jest kontroler
|
13 |
$this->_controller = 'adminhtml_odpowiedzi';
|
14 |
+
$this->_blockGroup = 'serwersms';
|
15 |
|
16 |
// tekst w naglowku admina
|
17 |
$this->_headerText = 'Odpowiedzi SMS';
|
app/code/community/SerwerSMS/Sms/Block/Adminhtml/Wyslane/Grid.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Block_Adminhtml_Wyslane_Grid extends Mage_Adminhtml_Block_Widget_Grid{
|
@@ -81,6 +80,10 @@ class SerwerSMS_Sms_Block_Adminhtml_Wyslane_Grid extends Mage_Adminhtml_Block_Wi
|
|
81 |
return parent::_prepareColumns();
|
82 |
}
|
83 |
|
|
|
|
|
|
|
|
|
84 |
}
|
85 |
|
86 |
?>
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Block_Adminhtml_Wyslane_Grid extends Mage_Adminhtml_Block_Widget_Grid{
|
80 |
return parent::_prepareColumns();
|
81 |
}
|
82 |
|
83 |
+
// public function getRowUrl($row){
|
84 |
+
// return $this->getUrl('*/*/edit',array('id' => $row->getId()));
|
85 |
+
// }
|
86 |
+
|
87 |
}
|
88 |
|
89 |
?>
|
app/code/community/SerwerSMS/Sms/Block/Adminhtml/WyslaneGrid.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Block_Adminhtml_WyslaneGrid extends Mage_Adminhtml_Block_Widget_Grid_Container{
|
@@ -12,7 +11,7 @@ class SerwerSMS_Sms_Block_Adminhtml_WyslaneGrid extends Mage_Adminhtml_Block_Wid
|
|
12 |
|
13 |
// gdzie jest kontroler
|
14 |
$this->_controller = 'adminhtml_wyslane';
|
15 |
-
$this->_blockGroup = '
|
16 |
|
17 |
// tekst w naglowku admina
|
18 |
$this->_headerText = 'Wiadomości wysłane';
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Block_Adminhtml_WyslaneGrid extends Mage_Adminhtml_Block_Widget_Grid_Container{
|
11 |
|
12 |
// gdzie jest kontroler
|
13 |
$this->_controller = 'adminhtml_wyslane';
|
14 |
+
$this->_blockGroup = 'serwersms';
|
15 |
|
16 |
// tekst w naglowku admina
|
17 |
$this->_headerText = 'Wiadomości wysłane';
|
app/code/community/SerwerSMS/Sms/Block/Danekonta.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Block_Danekonta extends Mage_Core_Block_Template{
|
@@ -56,6 +55,10 @@ class SerwerSMS_Sms_Block_Danekonta extends Mage_Core_Block_Template{
|
|
56 |
$xml = $helper->faktury(array(login => $api['login'], haslo => $api['haslo'], operacja => "lista"));
|
57 |
$dane = $helper->PrzetworzXML("faktury",$xml);
|
58 |
|
|
|
|
|
|
|
|
|
59 |
return $dane;
|
60 |
|
61 |
}
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Block_Danekonta extends Mage_Core_Block_Template{
|
55 |
$xml = $helper->faktury(array(login => $api['login'], haslo => $api['haslo'], operacja => "lista"));
|
56 |
$dane = $helper->PrzetworzXML("faktury",$xml);
|
57 |
|
58 |
+
// for($i=0;$i<15;$i++){
|
59 |
+
// $dane[$i] = array('id' => $i, 'numer' => $i, 'rozliczono' => rand(1,60).','.rand(10,80), 'kwota' => rand(1,60).','.rand(10,80), 'termin' => '2012-'.rand(1,12).'-'.rand(1,30));
|
60 |
+
// }
|
61 |
+
|
62 |
return $dane;
|
63 |
|
64 |
}
|
app/code/community/SerwerSMS/Sms/Block/Wyslijsms.php
CHANGED
@@ -3,8 +3,7 @@
|
|
3 |
/**
|
4 |
*
|
5 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
6 |
-
*
|
7 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
8 |
*/
|
9 |
|
10 |
class SerwerSMS_Sms_Block_Wyslijsms extends Mage_Core_Block_Template{
|
3 |
/**
|
4 |
*
|
5 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
6 |
+
* http://www.serwersms.pl
|
|
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Block_Wyslijsms extends Mage_Core_Block_Template{
|
app/code/community/SerwerSMS/Sms/Helper/SerwerSMS.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Helper_SerwerSMS {
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Helper_SerwerSMS {
|
app/code/community/SerwerSMS/Sms/Model/Mysql4/OdpowiedziModel.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Model_Mysql4_OdpowiedziModel extends Mage_Core_Model_Mysql4_Abstract{
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Model_Mysql4_OdpowiedziModel extends Mage_Core_Model_Mysql4_Abstract{
|
app/code/community/SerwerSMS/Sms/Model/Mysql4/OdpowiedziModel/Collection.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Model_Mysql4_OdpowiedziModel_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract{
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Model_Mysql4_OdpowiedziModel_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract{
|
app/code/community/SerwerSMS/Sms/Model/Mysql4/SmsModel.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Model_Mysql4_SmsModel extends Mage_Core_Model_Mysql4_Abstract{
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Model_Mysql4_SmsModel extends Mage_Core_Model_Mysql4_Abstract{
|
app/code/community/SerwerSMS/Sms/Model/Mysql4/SmsModel/Collection.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Model_Mysql4_SmsModel_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract{
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Model_Mysql4_SmsModel_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract{
|
app/code/community/SerwerSMS/Sms/Model/Nadawcy.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Model_Nadawcy extends Mage_Core_Model_Abstract {
|
@@ -30,13 +29,13 @@ class SerwerSMS_Sms_Model_Nadawcy extends Mage_Core_Model_Abstract {
|
|
30 |
$res = array(array('label' => '', 'value' => ''));
|
31 |
|
32 |
foreach($nazwy_nadawcy as $nazwa => $status){
|
33 |
-
if($status == 'Autoryzowano'){
|
34 |
$res[] = array('label' => $nazwa, 'value' => $nazwa);
|
35 |
}
|
36 |
}
|
37 |
|
38 |
foreach($predefiniowane as $nazwa => $status){
|
39 |
-
if($status == 'Autoryzowano'){
|
40 |
$res[] = array('label' => $nazwa, 'value' => $nazwa);
|
41 |
}
|
42 |
}
|
@@ -45,6 +44,7 @@ class SerwerSMS_Sms_Model_Nadawcy extends Mage_Core_Model_Abstract {
|
|
45 |
$res = array(array('label' => '', 'value' => ''));
|
46 |
}
|
47 |
|
|
|
48 |
return $res;
|
49 |
}
|
50 |
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Model_Nadawcy extends Mage_Core_Model_Abstract {
|
29 |
$res = array(array('label' => '', 'value' => ''));
|
30 |
|
31 |
foreach($nazwy_nadawcy as $nazwa => $status){
|
32 |
+
if($status == 'Autoryzowano' or $status == '4005'){
|
33 |
$res[] = array('label' => $nazwa, 'value' => $nazwa);
|
34 |
}
|
35 |
}
|
36 |
|
37 |
foreach($predefiniowane as $nazwa => $status){
|
38 |
+
if($status == 'Autoryzowano' or $status == '4005'){
|
39 |
$res[] = array('label' => $nazwa, 'value' => $nazwa);
|
40 |
}
|
41 |
}
|
44 |
$res = array(array('label' => '', 'value' => ''));
|
45 |
}
|
46 |
|
47 |
+
//ksort($res);
|
48 |
return $res;
|
49 |
}
|
50 |
|
app/code/community/SerwerSMS/Sms/Model/Observer.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Model_Observer{
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Model_Observer{
|
app/code/community/SerwerSMS/Sms/Model/OdpowiedziModel.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Model_OdpowiedziModel extends Mage_Core_Model_Abstract{
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Model_OdpowiedziModel extends Mage_Core_Model_Abstract{
|
app/code/community/SerwerSMS/Sms/Model/SmsModel.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Model_SmsModel extends Mage_Core_Model_Abstract{
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Model_SmsModel extends Mage_Core_Model_Abstract{
|
app/code/community/SerwerSMS/Sms/controllers/Adminhtml/IndexController.php
CHANGED
@@ -2,14 +2,13 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action{
|
10 |
|
11 |
protected function _initAction(){
|
12 |
-
$this->loadLayout()->_setActiveMenu('
|
13 |
->_addBreadcrumb('sms Manager','sms Manager');
|
14 |
return $this;
|
15 |
}
|
@@ -22,38 +21,38 @@ class SerwerSMS_Sms_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
|
|
22 |
|
23 |
public function niewyslaneAction(){
|
24 |
|
25 |
-
$this->loadLayout()->_setActiveMenu('
|
26 |
->_addBreadcrumb('sms Manager','sms Manager');
|
27 |
$this->renderLayout();
|
28 |
}
|
29 |
|
30 |
public function odpowiedziAction(){
|
31 |
|
32 |
-
$this->loadLayout()->_setActiveMenu('
|
33 |
->_addBreadcrumb('sms Manager','sms Manager');
|
34 |
$this->renderLayout();
|
35 |
}
|
36 |
|
37 |
public function danekontaAction(){
|
38 |
-
$this->loadLayout()->_setActiveMenu('
|
39 |
->_addBreadcrumb('sms Manager','sms Manager');
|
40 |
$this->renderLayout();
|
41 |
}
|
42 |
|
43 |
public function fakturyAction(){
|
44 |
-
$this->loadLayout()->_setActiveMenu('
|
45 |
->_addBreadcrumb('sms Manager','sms Manager');
|
46 |
$this->renderLayout();
|
47 |
}
|
48 |
|
49 |
public function dodajnazweAction(){
|
50 |
-
$this->loadLayout()->_setActiveMenu('
|
51 |
->_addBreadcrumb('sms Manager','sms Manager');
|
52 |
$this->renderLayout();
|
53 |
}
|
54 |
|
55 |
public function wyslijsmsAction(){
|
56 |
-
$this->loadLayout()->_setActiveMenu('
|
57 |
->_addBreadcrumb('sms Manager','sms Manager');
|
58 |
$this->renderLayout();
|
59 |
}
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action{
|
9 |
|
10 |
protected function _initAction(){
|
11 |
+
$this->loadLayout()->_setActiveMenu('serwersms/wyslane')
|
12 |
->_addBreadcrumb('sms Manager','sms Manager');
|
13 |
return $this;
|
14 |
}
|
21 |
|
22 |
public function niewyslaneAction(){
|
23 |
|
24 |
+
$this->loadLayout()->_setActiveMenu('serwersms/niewyslane')
|
25 |
->_addBreadcrumb('sms Manager','sms Manager');
|
26 |
$this->renderLayout();
|
27 |
}
|
28 |
|
29 |
public function odpowiedziAction(){
|
30 |
|
31 |
+
$this->loadLayout()->_setActiveMenu('serwersms/odpowiedzi')
|
32 |
->_addBreadcrumb('sms Manager','sms Manager');
|
33 |
$this->renderLayout();
|
34 |
}
|
35 |
|
36 |
public function danekontaAction(){
|
37 |
+
$this->loadLayout()->_setActiveMenu('serwersms/danekonta')
|
38 |
->_addBreadcrumb('sms Manager','sms Manager');
|
39 |
$this->renderLayout();
|
40 |
}
|
41 |
|
42 |
public function fakturyAction(){
|
43 |
+
$this->loadLayout()->_setActiveMenu('serwersms/faktury')
|
44 |
->_addBreadcrumb('sms Manager','sms Manager');
|
45 |
$this->renderLayout();
|
46 |
}
|
47 |
|
48 |
public function dodajnazweAction(){
|
49 |
+
$this->loadLayout()->_setActiveMenu('serwersms/danekonta')
|
50 |
->_addBreadcrumb('sms Manager','sms Manager');
|
51 |
$this->renderLayout();
|
52 |
}
|
53 |
|
54 |
public function wyslijsmsAction(){
|
55 |
+
$this->loadLayout()->_setActiveMenu('serwersms/wyslijsms')
|
56 |
->_addBreadcrumb('sms Manager','sms Manager');
|
57 |
$this->renderLayout();
|
58 |
}
|
app/code/community/SerwerSMS/Sms/controllers/OdpowiedziController.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_OdpowiedziController extends Mage_Core_Controller_Front_Action{
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_OdpowiedziController extends Mage_Core_Controller_Front_Action{
|
app/code/community/SerwerSMS/Sms/controllers/RaportController.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
class SerwerSMS_Sms_RaportController extends Mage_Core_Controller_Front_Action{
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
class SerwerSMS_Sms_RaportController extends Mage_Core_Controller_Front_Action{
|
app/code/community/SerwerSMS/Sms/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<SerwerSMS_Sms>
|
5 |
-
<version>1.0.
|
6 |
</SerwerSMS_Sms>
|
7 |
</modules>
|
8 |
|
@@ -13,7 +13,7 @@
|
|
13 |
<use>standard</use>
|
14 |
<args>
|
15 |
<module>SerwerSMS_Sms</module>
|
16 |
-
<frontName>
|
17 |
</args>
|
18 |
</routeurfrontend>
|
19 |
</routers>
|
@@ -22,57 +22,57 @@
|
|
22 |
|
23 |
<admin>
|
24 |
<routers>
|
25 |
-
<
|
26 |
<use>admin</use>
|
27 |
<args>
|
28 |
<module>SerwerSMS_Sms</module>
|
29 |
-
<frontName>
|
30 |
</args>
|
31 |
-
</
|
32 |
</routers>
|
33 |
</admin>
|
34 |
|
35 |
<adminhtml>
|
36 |
<layout>
|
37 |
<updates>
|
38 |
-
<
|
39 |
<file>serwersms/sms.xml</file>
|
40 |
-
</
|
41 |
</updates>
|
42 |
</layout>
|
43 |
<menu>
|
44 |
-
<
|
45 |
<title>SerwerSMS</title>
|
46 |
<sort_order>100</sort_order>
|
47 |
<children>
|
48 |
<wyslane>
|
49 |
<title>Wysłane wiadomości</title>
|
50 |
-
<action>
|
51 |
<sort_order>100</sort_order>
|
52 |
</wyslane>
|
53 |
<niewyslane>
|
54 |
<title>Niewysłane wiadomości</title>
|
55 |
-
<action>
|
56 |
<sort_order>200</sort_order>
|
57 |
</niewyslane>
|
58 |
<odpowiedzi>
|
59 |
<title>Odpowiedzi SMS</title>
|
60 |
-
<action>
|
61 |
<sort_order>300</sort_order>
|
62 |
</odpowiedzi>
|
63 |
<wyslijsms>
|
64 |
<title>Wyślij SMS</title>
|
65 |
-
<action>
|
66 |
<sort_order>400</sort_order>
|
67 |
</wyslijsms>
|
68 |
<dane_konta>
|
69 |
<title>Dane konta</title>
|
70 |
-
<action>
|
71 |
<sort_order>500</sort_order>
|
72 |
</dane_konta>
|
73 |
<faktury>
|
74 |
<title>Faktury</title>
|
75 |
-
<action>
|
76 |
<sort_order>600</sort_order>
|
77 |
</faktury>
|
78 |
<konfiguracja>
|
@@ -81,7 +81,7 @@
|
|
81 |
<sort_order>700</sort_order>
|
82 |
</konfiguracja>
|
83 |
</children>
|
84 |
-
</
|
85 |
</menu>
|
86 |
|
87 |
<acl>
|
@@ -109,9 +109,9 @@
|
|
109 |
|
110 |
<global>
|
111 |
<blocks>
|
112 |
-
<
|
113 |
<class>SerwerSMS_Sms_Block</class>
|
114 |
-
</
|
115 |
</blocks>
|
116 |
|
117 |
<models>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<SerwerSMS_Sms>
|
5 |
+
<version>1.0.1</version>
|
6 |
</SerwerSMS_Sms>
|
7 |
</modules>
|
8 |
|
13 |
<use>standard</use>
|
14 |
<args>
|
15 |
<module>SerwerSMS_Sms</module>
|
16 |
+
<frontName>serwersms</frontName>
|
17 |
</args>
|
18 |
</routeurfrontend>
|
19 |
</routers>
|
22 |
|
23 |
<admin>
|
24 |
<routers>
|
25 |
+
<serwersms>
|
26 |
<use>admin</use>
|
27 |
<args>
|
28 |
<module>SerwerSMS_Sms</module>
|
29 |
+
<frontName>serwersms</frontName>
|
30 |
</args>
|
31 |
+
</serwersms>
|
32 |
</routers>
|
33 |
</admin>
|
34 |
|
35 |
<adminhtml>
|
36 |
<layout>
|
37 |
<updates>
|
38 |
+
<serwersms>
|
39 |
<file>serwersms/sms.xml</file>
|
40 |
+
</serwersms>
|
41 |
</updates>
|
42 |
</layout>
|
43 |
<menu>
|
44 |
+
<serwersms translate="title" module="adminhtml">
|
45 |
<title>SerwerSMS</title>
|
46 |
<sort_order>100</sort_order>
|
47 |
<children>
|
48 |
<wyslane>
|
49 |
<title>Wysłane wiadomości</title>
|
50 |
+
<action>serwersms/adminhtml_index/index</action>
|
51 |
<sort_order>100</sort_order>
|
52 |
</wyslane>
|
53 |
<niewyslane>
|
54 |
<title>Niewysłane wiadomości</title>
|
55 |
+
<action>serwersms/adminhtml_index/niewyslane</action>
|
56 |
<sort_order>200</sort_order>
|
57 |
</niewyslane>
|
58 |
<odpowiedzi>
|
59 |
<title>Odpowiedzi SMS</title>
|
60 |
+
<action>serwersms/adminhtml_index/odpowiedzi</action>
|
61 |
<sort_order>300</sort_order>
|
62 |
</odpowiedzi>
|
63 |
<wyslijsms>
|
64 |
<title>Wyślij SMS</title>
|
65 |
+
<action>serwersms/adminhtml_index/wyslijsms</action>
|
66 |
<sort_order>400</sort_order>
|
67 |
</wyslijsms>
|
68 |
<dane_konta>
|
69 |
<title>Dane konta</title>
|
70 |
+
<action>serwersms/adminhtml_index/danekonta</action>
|
71 |
<sort_order>500</sort_order>
|
72 |
</dane_konta>
|
73 |
<faktury>
|
74 |
<title>Faktury</title>
|
75 |
+
<action>serwersms/adminhtml_index/faktury</action>
|
76 |
<sort_order>600</sort_order>
|
77 |
</faktury>
|
78 |
<konfiguracja>
|
81 |
<sort_order>700</sort_order>
|
82 |
</konfiguracja>
|
83 |
</children>
|
84 |
+
</serwersms>
|
85 |
</menu>
|
86 |
|
87 |
<acl>
|
109 |
|
110 |
<global>
|
111 |
<blocks>
|
112 |
+
<serwersms>
|
113 |
<class>SerwerSMS_Sms_Block</class>
|
114 |
+
</serwersms>
|
115 |
</blocks>
|
116 |
|
117 |
<models>
|
app/code/community/SerwerSMS/Sms/sql/sms_setup/mysql4-install-1.0.0.php
CHANGED
@@ -2,8 +2,7 @@
|
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
-
*
|
6 |
-
* @author Serwer SMS (http://www.serwersms.pl)
|
7 |
*/
|
8 |
|
9 |
$installer = $this;
|
2 |
/**
|
3 |
*
|
4 |
* @copyright Copyright (c) 2012-2013 SerwerSMS.pl
|
5 |
+
* http://www.serwersms.pl
|
|
|
6 |
*/
|
7 |
|
8 |
$installer = $this;
|
app/design/adminhtml/default/default/layout/serwersms/sms.xml
CHANGED
@@ -1,50 +1,51 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
3 |
-
<
|
4 |
<reference name="content">
|
5 |
-
<block type="
|
6 |
<action method="removeButton">
|
7 |
<param>add</param>
|
8 |
</action>
|
9 |
</block>
|
|
|
10 |
</reference>
|
11 |
-
</
|
12 |
-
<
|
13 |
<reference name="content">
|
14 |
-
<block type="
|
15 |
<action method="removeButton">
|
16 |
<param>add</param>
|
17 |
</action>
|
18 |
</block>
|
19 |
</reference>
|
20 |
-
</
|
21 |
-
<
|
22 |
<reference name="content">
|
23 |
-
<block type="
|
24 |
<action method="removeButton">
|
25 |
<param>add</param>
|
26 |
</action>
|
27 |
</block>
|
28 |
</reference>
|
29 |
-
</
|
30 |
-
<
|
31 |
<reference name="content">
|
32 |
-
<block type="
|
33 |
</reference>
|
34 |
-
</
|
35 |
-
<
|
36 |
<reference name="content">
|
37 |
-
<block type="
|
38 |
</reference>
|
39 |
-
</
|
40 |
-
<
|
41 |
<reference name="content">
|
42 |
-
<block type="
|
43 |
</reference>
|
44 |
-
</
|
45 |
-
<
|
46 |
<reference name="content">
|
47 |
-
<block type="
|
48 |
</reference>
|
49 |
-
</
|
50 |
</layout>
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
3 |
+
<serwersms_adminhtml_index_index>
|
4 |
<reference name="content">
|
5 |
+
<block type="serwersms/adminhtml_wyslaneGrid" name="wyslane">
|
6 |
<action method="removeButton">
|
7 |
<param>add</param>
|
8 |
</action>
|
9 |
</block>
|
10 |
+
<!--<block type="test/monblock" name="afficher_monblock" template="test/afficher.phtml" />-->
|
11 |
</reference>
|
12 |
+
</serwersms_adminhtml_index_index>
|
13 |
+
<serwersms_adminhtml_index_niewyslane>
|
14 |
<reference name="content">
|
15 |
+
<block type="serwersms/adminhtml_niewyslaneGrid" name="niewyslane">
|
16 |
<action method="removeButton">
|
17 |
<param>add</param>
|
18 |
</action>
|
19 |
</block>
|
20 |
</reference>
|
21 |
+
</serwersms_adminhtml_index_niewyslane>
|
22 |
+
<serwersms_adminhtml_index_odpowiedzi>
|
23 |
<reference name="content">
|
24 |
+
<block type="serwersms/adminhtml_odpowiedziGrid" name="odpowiedzi">
|
25 |
<action method="removeButton">
|
26 |
<param>add</param>
|
27 |
</action>
|
28 |
</block>
|
29 |
</reference>
|
30 |
+
</serwersms_adminhtml_index_odpowiedzi>
|
31 |
+
<serwersms_adminhtml_index_danekonta>
|
32 |
<reference name="content">
|
33 |
+
<block type="serwersms/danekonta" name="danekonta_danekonta" template="serwersms/danekonta.phtml" />
|
34 |
</reference>
|
35 |
+
</serwersms_adminhtml_index_danekonta>
|
36 |
+
<serwersms_adminhtml_index_faktury>
|
37 |
<reference name="content">
|
38 |
+
<block type="serwersms/danekonta" name="faktury_danekonta" template="serwersms/faktury.phtml" />
|
39 |
</reference>
|
40 |
+
</serwersms_adminhtml_index_faktury>
|
41 |
+
<serwersms_adminhtml_index_dodajnazwe>
|
42 |
<reference name="content">
|
43 |
+
<block type="serwersms/danekonta" name="dodajnazwe_danekonta" template="serwersms/dodajnazwe.phtml" />
|
44 |
</reference>
|
45 |
+
</serwersms_adminhtml_index_dodajnazwe>
|
46 |
+
<serwersms_adminhtml_index_wyslijsms>
|
47 |
<reference name="content">
|
48 |
+
<block type="serwersms/wyslijsms" name="formularzsms_wyslijsms" template="serwersms/formularzsms.phtml" />
|
49 |
</reference>
|
50 |
+
</serwersms_adminhtml_index_wyslijsms>
|
51 |
</layout>
|
app/design/adminhtml/default/default/template/serwersms/danekonta.phtml
CHANGED
@@ -62,7 +62,7 @@ $dane = $this->pokazDaneKonta();
|
|
62 |
<tr>
|
63 |
<td><strong>Nazwy nadawcy:</strong><br>
|
64 |
<?php $key = Mage::getSingleton('adminhtml/url')->getSecretKey("adminhtml_index","dodajnazwe"); ?>
|
65 |
-
(<a href="<?php echo Mage::helper("adminhtml")->getUrl("
|
66 |
<td></td><td></td>
|
67 |
</tr>
|
68 |
<?php
|
62 |
<tr>
|
63 |
<td><strong>Nazwy nadawcy:</strong><br>
|
64 |
<?php $key = Mage::getSingleton('adminhtml/url')->getSecretKey("adminhtml_index","dodajnazwe"); ?>
|
65 |
+
(<a href="<?php echo Mage::helper("adminhtml")->getUrl("serwersms/adminhtml_index/dodajnazwe/",array("key" => $key)); ?>">Dodaj nową nazwę</a>)</td>
|
66 |
<td></td><td></td>
|
67 |
</tr>
|
68 |
<?php
|
app/design/adminhtml/default/default/template/serwersms/dodajnazwe.phtml
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
</tr>
|
30 |
</tbody></table>
|
31 |
</div>
|
32 |
-
<form action="<?php echo Mage::getUrl('
|
33 |
<fieldset>
|
34 |
<table class="ramka_serwersms">
|
35 |
<tr>
|
29 |
</tr>
|
30 |
</tbody></table>
|
31 |
</div>
|
32 |
+
<form action="<?php echo Mage::getUrl('serwersms/adminhtml_index/savenazwa'); ?>" method="post">
|
33 |
<fieldset>
|
34 |
<table class="ramka_serwersms">
|
35 |
<tr>
|
app/design/adminhtml/default/default/template/serwersms/faktury.phtml
CHANGED
@@ -71,15 +71,15 @@ $dane = $this->pokazFaktury();
|
|
71 |
$key_pag = Mage::getSingleton('adminhtml/url')->getSecretKey("adminhtml_index","faktury");
|
72 |
|
73 |
for($i=1;$i<=$liczba_stron;$i++){
|
74 |
-
$link = Mage::helper("adminhtml")->getUrl("
|
75 |
if($i == $aktywna_strona){
|
76 |
$wszystkie_strony[$i] = $i;
|
77 |
} else {
|
78 |
$wszystkie_strony[$i] = '<a href="'.$link.'">'.$i.'</a>';
|
79 |
}
|
80 |
}
|
81 |
-
$poczatek = Mage::helper("adminhtml")->getUrl("
|
82 |
-
$koniec = Mage::helper("adminhtml")->getUrl("
|
83 |
|
84 |
if($liczba_stron<=11){
|
85 |
foreach($wszystkie_strony as $strona){
|
@@ -110,7 +110,7 @@ $dane = $this->pokazFaktury();
|
|
110 |
|
111 |
$key = Mage::getSingleton('adminhtml/url')->getSecretKey("adminhtml_index","podgladfaktury");
|
112 |
foreach($tablica as $pole){
|
113 |
-
$link = Mage::helper("adminhtml")->getUrl("
|
114 |
echo '
|
115 |
<tr>
|
116 |
<td>'.$pole['numer'].'</td><td>'.$pole['rozliczono'].'</td><td>'.$pole['kwota'].'</td><td>'.$pole['termin'].'</td><td><a href="'.$link.'">podgląd</a></td>
|
71 |
$key_pag = Mage::getSingleton('adminhtml/url')->getSecretKey("adminhtml_index","faktury");
|
72 |
|
73 |
for($i=1;$i<=$liczba_stron;$i++){
|
74 |
+
$link = Mage::helper("adminhtml")->getUrl("serwersms/adminhtml_index/faktury/",array("strona" => $i, "key" => $key_pag));
|
75 |
if($i == $aktywna_strona){
|
76 |
$wszystkie_strony[$i] = $i;
|
77 |
} else {
|
78 |
$wszystkie_strony[$i] = '<a href="'.$link.'">'.$i.'</a>';
|
79 |
}
|
80 |
}
|
81 |
+
$poczatek = Mage::helper("adminhtml")->getUrl("serwersms/adminhtml_index/faktury/",array("strona" => 1, "key" => $key_pag));
|
82 |
+
$koniec = Mage::helper("adminhtml")->getUrl("serwersms/adminhtml_index/faktury/",array("strona" => $liczba_stron, "key" => $key_pag));
|
83 |
|
84 |
if($liczba_stron<=11){
|
85 |
foreach($wszystkie_strony as $strona){
|
110 |
|
111 |
$key = Mage::getSingleton('adminhtml/url')->getSecretKey("adminhtml_index","podgladfaktury");
|
112 |
foreach($tablica as $pole){
|
113 |
+
$link = Mage::helper("adminhtml")->getUrl("serwersms/adminhtml_index/podgladfaktury/",array("faktura" => $pole['id'], "key" => $key));
|
114 |
echo '
|
115 |
<tr>
|
116 |
<td>'.$pole['numer'].'</td><td>'.$pole['rozliczono'].'</td><td>'.$pole['kwota'].'</td><td>'.$pole['termin'].'</td><td><a href="'.$link.'">podgląd</a></td>
|
app/design/adminhtml/default/default/template/serwersms/formularzsms.phtml
CHANGED
@@ -50,7 +50,7 @@
|
|
50 |
<?php
|
51 |
$nadawcy = $this->nadawcyLista();
|
52 |
?>
|
53 |
-
<form action="<?php echo Mage::getUrl('
|
54 |
<fieldset>
|
55 |
<table class="ramka_serwersms">
|
56 |
<tr>
|
@@ -74,7 +74,7 @@ $nadawcy = $this->nadawcyLista();
|
|
74 |
<?php
|
75 |
if(is_array($nadawcy)){
|
76 |
foreach($nadawcy['wlasne'] as $nazwa => $status){
|
77 |
-
if($status == 'Autoryzowano'){
|
78 |
echo '<option value="'.$nazwa.'">'.$nazwa.'</option>';
|
79 |
}
|
80 |
}
|
50 |
<?php
|
51 |
$nadawcy = $this->nadawcyLista();
|
52 |
?>
|
53 |
+
<form action="<?php echo Mage::getUrl('serwersms/adminhtml_index/wysylkaform'); ?>" method="post">
|
54 |
<fieldset>
|
55 |
<table class="ramka_serwersms">
|
56 |
<tr>
|
74 |
<?php
|
75 |
if(is_array($nadawcy)){
|
76 |
foreach($nadawcy['wlasne'] as $nazwa => $status){
|
77 |
+
if($status == 'Autoryzowano' or $status == '4005'){
|
78 |
echo '<option value="'.$nazwa.'">'.$nazwa.'</option>';
|
79 |
}
|
80 |
}
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>SerwerSMSpl</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl - 3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>SMS notification module. | Moduł powiadomień SMS</summary>
|
10 |
<description>Moduł umożliwia wysyłkę wiadomości SMS do administratora sklepu w momencie złożenia nowego zamówienia, oraz do klienta kiedy jego zamówienie zostanie zrealizowane lub wstrzymane. Ponadto możliwa jest także wysyłka pojedyńczych wiadomości do grupy klientów lub indywidualnej osoby. Moduł pozwala na dostęp do podstawowych informacji o koncie w SerwerSMS takich jak stan konta, dostępna długość wiadomości, czy lista nazw nadawcy.</description>
|
11 |
-
<notes>
|
12 |
-
<authors><author><name>SerwerSMS</name><user>SerwerSMS</user><email>biuro@serwersms.pl</email></author></authors>
|
13 |
-
<date>2013-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="SerwerSMS"><dir name="Sms"><dir name="Block"><dir name="Adminhtml"><dir name="Niewyslane"><file name="Grid.php" hash="
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>SerwerSMSpl</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl - 3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>SMS notification module. | Moduł powiadomień SMS</summary>
|
10 |
<description>Moduł umożliwia wysyłkę wiadomości SMS do administratora sklepu w momencie złożenia nowego zamówienia, oraz do klienta kiedy jego zamówienie zostanie zrealizowane lub wstrzymane. Ponadto możliwa jest także wysyłka pojedyńczych wiadomości do grupy klientów lub indywidualnej osoby. Moduł pozwala na dostęp do podstawowych informacji o koncie w SerwerSMS takich jak stan konta, dostępna długość wiadomości, czy lista nazw nadawcy.</description>
|
11 |
+
<notes>Poprawka wyświetlania stron wysyłki, danych konta i faktur.</notes>
|
12 |
+
<authors><author><name>SerwerSMS.pl</name><user>SerwerSMS</user><email>biuro@serwersms.pl</email></author></authors>
|
13 |
+
<date>2013-08-22</date>
|
14 |
+
<time>08:37:12</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="SerwerSMS"><dir name="Sms"><dir name="Block"><dir name="Adminhtml"><dir name="Niewyslane"><file name="Grid.php" hash="317d7967039ed5b8447999d259fa9353"/></dir><file name="NiewyslaneGrid.php" hash="0671b1bd063eea416f327ec1946e1c96"/><dir name="Odpowiedzi"><file name="Grid.php" hash="84f63c3ad25ee5d50b0ec1b84439e4f1"/></dir><file name="OdpowiedziGrid.php" hash="141b7dcf19b94db6837308a0540ee995"/><dir name="Wyslane"><file name="Grid.php" hash="eacbbb4da57a549a9eab9f6c78d222df"/></dir><file name="WyslaneGrid.php" hash="2245fde11523a62523dca935750ca08f"/></dir><file name="Danekonta.php" hash="99a39c0ae445930971381351141ca8c7"/><file name="Wyslijsms.php" hash="ec9cdf1c689ec26dd34a0e17f7e7d7ad"/></dir><dir name="Helper"><file name="SerwerSMS.php" hash="19a7c211baddeaa22beed5201f867ef5"/></dir><dir name="Model"><dir name="Mysql4"><dir name="OdpowiedziModel"><file name="Collection.php" hash="dbfa2e96c3f088b42a4e2a8a6cc2b4c0"/></dir><file name="OdpowiedziModel.php" hash="1a04631d3aa451c1713f020e2d17e6cf"/><dir name="SmsModel"><file name="Collection.php" hash="6735ae51dc06d5f2725f526987715ca8"/></dir><file name="SmsModel.php" hash="0d599d22592ea6d52e2b1172065ccea1"/></dir><file name="Nadawcy.php" hash="d3b1efd3676be0b99f576e62e483844c"/><file name="Observer.php" hash="e1438c05b8a3cb8009be06403472f301"/><file name="OdpowiedziModel.php" hash="3d6cb078b3042a2d22a4f9493656ce84"/><file name="SmsModel.php" hash="c0efeebdbc12b2c7580dc535affa9ca9"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="e302357841d00e5b289cd828f58bc7f3"/></dir><file name="OdpowiedziController.php" hash="bd2fa7d16609e58b9c621c85bfd9de7c"/><file name="RaportController.php" hash="8eefa4bbcf432c1841167c9d26436511"/></dir><dir name="etc"><file name="config.xml" hash="7ee7d64fa0c2e0d6aa96f43a409ae434"/><file name="system.xml" hash="0e8cf3b0af6614c7deb803bd999fce57"/></dir><dir name="sql"><dir name="sms_setup"><file name="mysql4-install-1.0.0.php" hash="f415a5cf53d5353190e87d3141311acc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="serwersms"><file name="sms.xml" hash="db99af44a18f7e4f58be1f5ee091a897"/></dir></dir><dir name="template"><dir name="serwersms"><file name="danekonta.phtml" hash="2278932d3a6561f4a0dbf3287d3bcfc8"/><file name="dodajnazwe.phtml" hash="0dc2f52bb0c1c9959c2741bd21574138"/><file name="faktury.phtml" hash="108e74928a4c878a44c30f6cecc67254"/><file name="formularzsms.phtml" hash="07c495614d2c0fef84def13c99014fee"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SerwerSMS_Sms.xml" hash="60b8a59f621ae8222504fd95dae8545b"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="serwersms"><file name="serwersms.png" hash="e686cbffb9e6d14eff216b382780ca05"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><extension><name>curl</name><min></min><max></max></extension><extension><name>SimpleXML</name><min></min><max></max></extension></required></dependencies>
|
18 |
</package>
|