����JFIF�����%%��� }!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������� w!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|��O�������h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,���|-��v��(���� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�������;~��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@�������?�_�����j������ (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,���|-��v��(���� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�������;~��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@�������?�_�����j������ (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,��������ο�O�P��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������k�w���~���v��������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j�?�5o�%��?��� g����U@�����&O3�����a�;�^=�wH���D��/��*� �fX�I���,������k?g_���?�5o�%��?��� g����U@�F�����������*������?�o�}��Τ~g��ʀ�#V��Y������~ο�T�j��K/� ������������z��������#;�~���A�;��� w�F�����������*���տ��_�@�o��5����EU������������u�誠��W��[�����������O��?jW���@��տ���@�o��5����EM������������v�訠�#V��Y�������������V��Zv��~����vw�~���c�Q@���,��~���kgo���?�5o�%��/��� o����Q@��o�%�>�ߤ���߳����S������?��o�%�~�ߠ�d�߳����S����g�P��j��K?� _������������[� g�D����[�;�TP7���������'Ѿ���=��;/�P��j��K?� _������������[� g�D����[�;�TP���,��~���kgo���a������۔���B{���ea�`T�+ �n%Ц �����j��K?� _������������[� g�D����[�;�TP���,��~���kgo����?���%�/�~�����#����x��c�~�q�v�t`ȫ��_'h���������'�]�;{s� Pp=N= 5���%�����ڜs�����=���J��A@�����Kp�b��}��X�����4g v+:�Բ�+60�ʩ,� @�����������I �uO�����ToUv��bgUl�cP�T?�#V��Y������������j��K?� _����������!��X��]���������TK�|4��`� ��#��P\y��aa >NgL��j��K?� _������������[� g�D����[�;�TP���,��~���kgo���o�F�����$��ہ�� ��vݞr6��S�q''*02���[� g�D����[�;�TP���,��~���kgo���?�5o�%��/��� o����Q@�F�����������*(��տ���@�o��5����EE������������v�訠��������~1�o���}G�L�������5o�%��/��� o����Q@�F�����������*(��տ���@�o��5����EE5����%�˷���r�v����y�\~���)(?0���=[� i����>��gc��N=����5o�%��/��� o����Q@�F�����������*(��W��Z�l����m#���X�wn_�j`0C6윅����5o�%��/��� o����Q@��տ��y9���gbO�G�5@�n�>���#V��Y������~ο�T��V��Y����9�gc��s�T.�?Z_��[� e�D����Y�:��UP���,������k?g_����_�=_� n�~~�rI������w�,"~ԓ�!72���)( u��#V��Y������~ο�T�j��K/� ��������������K
�����Kr_���}�De>~��Z=��pjX�n[p(�"� �a,Ub�/�×�<����;��<�����K>��o���[�:����V���,��$��ϧ�*�����5O����տ��_�@�o��5����EU5��o�%����?�ꜜm�_�;>Gbs�S�����@��տ��_�@�o��5����EU ��տ��}�~�����v?�������-��o�l��~�ȥ�v����r��B1���@��տ���A�?����ggP��c�S�`@%�*����տ��_�@�o��5����EU������������u�誠7���� O���!c�|0��ёv��4�+�X�Vx�RX3��8����K>��o���[�:���u#�x��#V��Y������~ο�T�j��K/� ������������[� e�D����Y�:��UP���,������k?g_���O��[� g�D����[�:��T��=_� k����~��k����c�;����.8����c��z��Ͽ�/��zc�o����F?Z_��[� e�D����Y�:��UP���,������k?g_���C���,�v����v�o���H������(�z���w�/�����v ��T.G��Ϡ���տ��_�@�o��5����EU������������u�誠��W��[��'����%��o���:�Cڕ�R̀���j���������?�o���[�;������g0q�?��o�%�>o�_��>�gf����~4�������������u�誠�z���7�/��o���������_��[� e�D����Y�:��UP���,������k?g_���C���,�|�����o��;�Ԟ��9�l�z��ؠ3|��O�X�~���;~�q����Z�F�����������*���տ��_�@�o��5����EU!��տ��}�~����-��G��I�T�������������u�誠�#V��Y������~ο�T�j��K/� ����������#�=_� n|���KbB�gtdM��"�ڒA#n�63�6�m�P�����,���/���gS�u����#�9��5o�%��?��� g����U@��o�%�o�_�����u��'�������?��o��� ���3��?go���|m�ڇ���-S�O��x��>���^�����7����x�]_�>�qke>���m��4��7P�Yހ��
0byt3m1n1
0byt3m1n1
Path:
/
hermes
/
bosweb
/
web
/
web
/
b2815
/
sleepingcatorganicfarm.com
/
shared
/
classfiles
/
[
Home
]
File: maintainData~tps~.php
<?php require_once("shared/functions/outputResponse.php"); require_once("shared/functions/outputConfirmationForm.php"); class maintainData{ var $action = ""; var $BLANK_LOGIN = "blank_login"; var $LOGIN = "login"; var $BLANK_EDIT = "blank_edit"; var $TOOLONG = " Value is too long."; var $TOOSHORT = " Value is too short."; var $userName = ""; var $password = ""; var $userNameMsg = ""; var $passwordMsg = ""; var $adminArea = ""; //admin areas var $EMAIL = "email"; var $SEND_EMAIL = "send_email"; var $PRODUCT = "product"; var $PRODUCT_CATEGORY = "category"; var $NEW_PRODUCT = "new_product"; var $NEW_PRODUCT_CATEGORY = "new_category"; var $DELETE_PRODUCT = "delete_product"; var $NOTIFY = "notify"; //vars used for emailForm var $notifyGeneral = "N"; var $notifyMarket = "N"; var $notifyCSA = "N"; var $subject = ""; var $body = ""; var $title = ""; var $emailMSG = ""; var $notification = ""; var $notificationMSG = ""; var $previousNotification = ""; var $buttonUsed = ""; function maintainData(){ $this->postData(); //open DB require_once("shared/db/dbconnect.php"); if($this->action == $this->BLANK_LOGIN || strlen($this->action) == 0){ $this->action = $this->LOGIN; $this->outputLoginForm(); } elseif($this->action == $this->LOGIN){ if($this->validateLoginForm()){ $page = "maintain.php?action=".$this->BLANK_EDIT; echo("<script type='text/javascript'>gotoPage('$page');</script>"); } else { //failed validation $this->outputLoginForm(); } } elseif($this->action==$this->BLANK_EDIT && $_SESSION['loggedin'] && $_SESSION['admin'] == 'Y'){ if($this->adminArea == $this->EMAIL){ $this->action = $this->EMAIL; $this->outputMassEmailForm(); } elseif($this->adminArea == $this->PRODUCT){ $pC = new productCategory(); $product = new product(); $this->action = $this->PRODUCT; $products = $product->populateProductFromDB(); $pCategories = $pC->populateProductCategoryFromDB(); $this->productUpdateForm($products, $pCategories); } elseif($this->adminArea == $this->PRODUCT_CATEGORY){ //this is not currently used echo("<BR>PRODUCT CATEGORY<BR>"); $pC = new productCategory(); $this->action = $this->PRODUCT_CATEGORY; $pCategories = $pC->populateProductCategoryFromDB(); $this->categoryUpdateForm($pCategories); } elseif($this->adminArea == $this->NEW_PRODUCT_CATEGORY){ //this is not currently used } elseif($this->adminArea == $this->NEW_PRODUCT){ $this->action = $this->PRODUCT; $pC = new productCategory(); $pCategories = $pC->populateProductCategoryFromDB(); $product = array(); $product[] = new product(); $this->productUpdateForm($product, $pCategories, true); } elseif($this->adminArea == $this->NOTIFY){ //get current text $db = db_connect(); $sql = "SELECT * from scf_notify WHERE notify_type = 'main'"; $result = $db->getRow($sql, array(), DB_FETCHMODE_ASSOC); $db->disconnect(); $this->previousNotification = $result['notify_msg']; if(strlen($this->previousNotification) == 0){ $this->previousNotification = ?> <font } $_SESSION['previous_notify'] = $this-previousNotification; //update text used for notification text $this->notifcationForm(); }else{ $this->adminOptionForm(); } } elseif($this->action == $this->NOTIFY && $_SESSION['loggedin'] && $_SESSION['admin'] == 'Y'){ $this->previousNotification = $_SESSION['previous_notify']; //validate and Update notification text if(strlen($this->notification) == 0){ $this->notificationMSG = "Notification Message cannot be empty"; $this->notifcationForm(); } elseif(!$_GET['confirm']){ $this->notifcationForm(); } elseif($_GET['confirm']){ //save notification $db = db_connect(); $sql = "DELETE * from scf_notify WHERE notify_type = 'main'"; $result = $db->query($sql); $sql = "INSERT INTO scf_notify (notify_msg, notify_type) VALUES ('$this->notification', 'main')"; $result = $db->query($sql); $db->disconnect(); $response = "Failed to update the notification message"; if($result){ $response = "Notification message updated successfully."; } outputResponse($response); $this->adminOptionForm(); } else { //output confirmation form $confirmTxt = "<B>Confirm the new notification text<br><br>". "New Text: </b>$notification<br><br><b>Old Text: $previousNotification"; outputConfirmationForm($confirmTxt, "maintain.php?action=$this->NOTIFY"); } } elseif($this->action == $this->PRODUCT && $_SESSION['loggedin'] && $_SESSION['admin'] == 'Y'){ $this->postProductData(); if($this->buttonUsed == 'Update Products' || $this->buttonUsed == 'Create Product'){ $array = $_SESSION['updated_products']; $allPassed = true; reset($array); for($index = 0; $index < count($array); $index++){ if(strlen(trim(current($array)->getValidationMSG())) > 0){ $allPassed = false; } next($array); } if($allPassed){ outputResponse("The Sleeping Cat Product List has been updated."); $this->saveObjectList($array); $this->action = $this->BLANK_EDIT; $this->adminOptionForm(); } else { $pC = new productCategory(); $pCategories = $pc->populateProductCategoryFromDB(); $this->productUpdateForm($_SESSION['updated_products'], $pCategories); } } elseif($this->buttonUsed == 'Delete Selected'){ //delete selected products $deleteArray = array(); $noneToDelete = true; $confirmationMsg = "Are you sure you want to delete the following products?<br><br>". "<table class='productlistresultsheader' align='center' border='0' cellpadding='2' ". "cellspacing='1'><tr class='stdcol3'><th class='stdcol3'><a align='center'>id</a></th>". "<th class='stdcol3'><a align='center'>Product</a></th>". "<th class='stdcol3'><a align='center'>SubCategory</a></th>". "<th class='stdcol3'><a align='center'>Category</a></th>"; $array = $_SESSION['updated_products']; reset($array); for($index = 0; $index < count($array); $index++){ if(current($array)->getMarkedToDelete()){ $noneToDelete = false; $deleteArray[] = current($array); $name = current($array)->getName(); $id = current($array)->getId(); $category = current($array)->getCategory(); $cat = $category->getName(); $type = $category->getType(); $class = ""; if($index % 2 == 0){ $class = "class='stdcol1'"; } else { $class = "class='stdcol2'"; } $confirmationMsg = $confirmationMsg."<tr><td $class>$id</td><td $class>$name</td><td $class>$cat</td><td $class>$type</td><tr>"; } next($array); } $confirmationMsg = $confirmationMsg."</table><br>"; if($noneToDelete){ $confirmationMsg = "No products were selected to delete."; outputResponse($confirmationMsg); $pC = new productCategory(); $pCategories = $pC->populateProductCategoryFromDB(); $this->productUpdateForm($_SESSION['updated_products'], $pCategories); } else{ reset($deleteArray); $_SESSION['updated_products'] = $deleteArray; outputConfirmationForm($confirmationMsg, "maintain.php?action=$this->DELETE_PRODUCT"); } } } elseif($this->action == $this->EMAIL && $_SESSION['loggedin'] && $_SESSION['admin'] == 'Y'){ //generate email preview $this->postEmailData(); $validated = true; //store data in session $_SESSION['title'] = $this->title; $_SESSION['subject'] = $this->subject; $_SESSION['general'] = $this->notifyGeneral; $_SESSION['market'] = $this->notifyMarket; $_SESSION['csa'] = $this->notifyCSA; $_SESSION['body'] = $this->body; $emailContent = file_get_contents("shared/emails/standardemail.txt"); $emailContent = str_replace("-title", $this->title, $emailContent); $emailContent = str_replace("-body", $this->body, $emailContent); $emailContent = str_replace("width='800'", "width='600'", $emailContent); $_SESSION['email_content'] = $emailContent; $recipients = ""; if($this->notifyGeneral == 'Y'){ $recipients = "General List"; } if($this->notifyMarket == 'Y'){ if(strlen($recipients) > 0){ $recipients = $recipients.", "; } $recipients = $recipients."Market List"; } if($this->notifyCSA == 'Y'){ if(strlen($recipients) > 0){ $recipients = $recipients.", "; } $recipients = $recipients."CSA List"; } if(strlen($recipients) > 0){ $recipients = $recipients."."; } else { $recipients = "None selected!"; $validated = false; $this->emailMSG = "At lease one recipient must be selected."; } if(strlen($this->subject) == 0){ if(strlen($this->emailMSG) > 0){ $this->emailMSG = $this->emailMSG."<br>"; } $validated = false; $this->emailMSG = $this->emailMSG."Subject cannot be blank."; } if(strlen($this->title) == 0){ if(strlen($this->emailMSG) > 0){ $this->emailMSG = $this->emailMSG."<br>"; } $this->emailMSG = $this->emailMSG."Title cannot be blank."; $validated = false; } if(strlen($this->body) == 0){ if(strlen($this->emailMSG) > 0){ $this->emailMSG = $this->emailMSG."<br>"; } $validated = false; $this->emailMSG = $this->emailMSG."Body cannot be blank."; } $emailContent = "<B><A align='center'>Confirm this email prior to sending.</A></B><br>". "<B>Recipients: </B>$recipients<br><B>Subject: </B>$this->subject<br>".$emailContent; if($validated){ outputConfirmationForm($emailContent, "maintain.php?action=$this->SEND_EMAIL"); } else { $this->outputMassEmailForm(); } } elseif($this->action == $this->SEND_EMAIL && $_SESSION['loggedin'] && $_SESSION['admin'] == 'Y'){ //get info from session $this->title = $_SESSION['title']; $this->subject = $_SESSION['subject']; $this->notifyGeneral = $_SESSION['general']; $this->notifyMarket = $_SESSION['market']; $this->notifyCSA = $_SESSION['csa']; $this->body = $_SESSION['body']; if($_GET['confirm']){ require_once("shared/classfiles/emailUser.php"); $emailUser = new emailUser(); $emailUsers = $emailUser->populatEmailUsersFromDB(); //send email to Users reset($emailUsers); $response = ""; for($index = 0; $index < count($emailUsers); $index++){ $response = $response."<br>".current($emailUsers)->sendEmail($this->subject, $_SESSION['email_content'], $this->notifyGeneral, $this->notifyMarket, $this->notifyCSA); next($emailUsers); } if(strlen($response) == 0){ $response = "All emails were sent successfully."; } else { $response = "The following emails failed to send:<br>".$response; } } else{ $this->action = $this->EMAIL; $this->outputMassEmailForm(); } } elseif($this->action == $this->PRODUCT_CATEGORY && $_SESSION['loggedin'] && $_SESSION['admin'] == 'Y'){ } elseif($this->action == $this->DELETE_PRODUCT && $_SESSION['loggedin'] && $_SESSION['admin'] == 'Y'){ $confirmation = $_GET['confirm']; $deleteResponse = ""; if($confirmation){ $array = $_SESSION['updated_products']; reset($array); for($index = 0; $index < count($array); $index++){ current($array)->delete(); next($array); } if(count($array) == 1){ $deleteResponse = "1 product was deleted."; } else { $deleteResponse = count($array)." products were deleted."; } } else{ $deleteResponse = "No products were deleted."; } outputResponse($deleteResponse); $this->action = $this->BLANK_EDIT; $this->adminOptionForm(); } } function saveObjectList($array){ reset($array); for($index = 0; $index < count($array); $index++){ current($array)->updateDB(); next($array); } } function postEmailData(){ $this->notifyGeneral = $_POST['notifyGeneral']; $this->notifyMarket = $_POST['notifyMarket']; $this->notifyCSA = $_POST['notifyCSA']; $this->subject = $_POST['subject']; $this->body = $_POST['body']; $this->title = $_POST['title']; } function postProductData(){ $this->buttonUsed = $_POST['submitbutton']; //set update_products list equal to orrigional products list. //alter values as specified by user and validate $newProducts = $_SESSION['products']; $origCategories = $_SESSION['categories']; reset($newProducts); for($index = 0; $index < count($newProducts); $index++){ $id = current($newProducts)->getId(); current($newProducts)->setName($_POST[$id."productName"]); current($newProducts)->setPrice($_POST[$id."dollars"].".".$_POST[$id."cents"]); current($newProducts)->setDescription($_POST[$id."description"]); if($_POST[$id."priceBy"] == "lb"){ current($newProducts)->setChargeByPound(true); current($newProducts)->setChargeByUnit(false); } elseif($_POST[$id."priceBy"] == "unit"){ current($newProducts)->setChargeByPound(false); current($newProducts)->setChargeByUnit(true); } $category = $origCategories[$_POST[$id."category"]]; current($newProducts)->setCategory($category); if($_POST[$id."delete"] == "Y"){ current($newProducts)->setMarkedToDelete(true); } else { current($newProducts)->setMarkedToDelete(false); } current($newProducts)->validate(); next($newProducts); } $_SESSION['updated_products'] = $newProducts; } function validateLoginForm(){ $passedValidation = true; //validate username if (strlen($this->userName) == 0) { $passedValidation = false; $this->userNameMsg = $this->TOOSHORT.$this->userNameMsg; } //validate password if (strlen($this->password) == 0) { $passedValidation = false; $this->passwordMsg = $this->TOOSHORT.$this->passwordMsg; } //attempt login $session = new session(); if($passedValidation && !$session->login($this->userName, $this->password, false)){ $passedValidation = false; $this->passwordMsg = "Username or Password incorrect. ".$this->passwordMsg; } return $passedValidation; } function postData(){ $this->action = $_GET['action']; $this->userName = $_POST['userName']; $this->password = $_POST['password']; $this->adminArea = $_POST['adminOption']; } function outputLoginForm(){ ?> <table align='center' border='0' cellpadding='2' cellspacing='1'> <?PHP echo("<form method='POST' action='maintain.php?action=$this->action' name='logingform'>"); ?> <tr> <td align='center' colspan='4'> <a>Login to update site or send email list notifications.</a> </td> </tr> <tr> <td align='right'><a>username</a></td> <td align='right'><input type='text' name='userName' size='20' value='<?PHP echo($this->userName);?>'></td> <td class='sendmsgform' align='left'><font color="#FF0000"><a class='sendmsgform'>*</a></font></td> <td class='sendmsgform' align='left'><font color="#FF0000"><a class='sendmsgform'><?PHP echo($this->userNameMsg); ?></a></font></td> </tr> <tr> <td align='right'><a>password</a></td> <td align='right'><input type='password' name='password' size='20' value=''></td> <td class='sendmsgform' align='left'><font color="#FF0000"><a class='sendmsgform'>*</a></font></td> <td class='sendmsgform' align='left'><font color="#FF0000"><a class='sendmsgform'><?PHP echo($this->passwordMsg); ?></a></font></td> </tr> <tr> <?PHP echo("<td align='center' colspan='4'><input type='submit' name='submitbutton' value='Login'></td>"); ?> </tr> </form> </table> <?PHP } function adminOptionForm(){ $optionSelect = "<select name='adminOption'>". "<option name='option' value ='$this->EMAIL'>Send Mass Email</option>". "<option name='option' value ='$this->PRODUCT'>Update Products</option>". "<option name='option' value ='$this->NEW_PRODUCT'>New Product</option>". "<option name='option' value ='$this->NOTIFY'>Update Site Message</option>". //"<option name='option' value ='$this->PRODUCT_CAGETORY'>Update Product Categories</option>". //"<option name='option' value ='$this->NEW_PRODUCT_CAGETORY'>New Product Categories</option>". "</select>"; ?> <table class='productlist' align='center' border='0' cellpadding='2' cellspacing='1'> <form class='productlist' method='POST' action='maintain.php?action=<?PHP echo($this->action)?>' name='optionform'> <tr class='productlist'> <td class='productlist' align='center' colspan='2'> <h3 align='center'>Welcome <?PHP echo($_SESSION['fname']); ?>, you are authorized to update SCOF.com</h3> </td> </tr> <tr class='productlist'> <td class='productlist' align='right'><a>Select area to administer:</a></td> <?PHP echo("<td class='productlist' align='left'>$optionSelect"); ?> <input type='submit' name='submitbutton' value='Administer'></td> </tr> </form> </table> <br> <?PHP } function productUpdateForm($products, $pCategories, $new=false){ reset($products); reset($pCategories); $_SESSION['products'] = $products; $_SESSION['categories'] = $pCategories; //print out warnings reset($products); for($index = 0; $index < count($products); $index++) { if(strlen(current($products)->getValidationMSG()) > 0){ echo("<font color='#FF0000'><a class='sendmsgform'>Product id ".current($products)->getId().": ".current($products)->getValidationMSG()."</a></font><br>"); } next($products); } ?> <table class='productlistresultsheader' align='center' width='600' border='0' cellpadding='2' cellspacing='1'> <form class='productlist' method='POST' action='maintain.php?action=<?PHP echo($this->action)?>' name='optionform'> <?PHP if(!$new){ echo("<tr><td colspan='3' align='center'><input type='submit' name='submitbutton' value='Update Products'></td><td colspan='3' align='right'><input type='submit' name='submitbutton' value='Delete Selected'></td></tr>"); }?> <tr class='stdcol3'> <th class='stdcol3'><a align='center'>id</a></th> <th class='stdcol3'><a align='center'>Product /</a> <br><a align='center'>SubCategory:Category</a></th> <th class='stdcol3'><a align='center'>Price</a></th> <th class='stdcol3'><a align='center'>Description</a></th> <?PHP if(!$new){echo("<th class='stdcol3'><a align='center'>Delete</a></th>");} ?> </tr> <?PHP reset($products); for($index = 0; $index < count($products); $index++) { //generate the category option list $optionSelect = "<select name='".current($products)->getId()."category'>"; reset($pCategories); for($catIndex = 0; $catIndex < count($pCategories); $catIndex++){ $selected = ""; if(current($pCategories)->getId() == current($products)->getCategory()->getId()){ $selected = "selected"; } $optionSelect = $optionSelect."<option name='".current($products)->getId()."option' value ='".current($pCategories)->getId()."' $selected>".current($pCategories)->getName()." : ".current($pCategories)->getType()."</option>"; next($pCategories); } $optionSelect = $optionSelect."</select>"; //break apart price $decimalLocation = strpos(current($products)->getPrice(), "."); $length = strlen(current($products)->getPrice()); $dollars = substr(current($products)->getPrice(), 0, $decimalLocation); $cents = substr(current($products)->getPrice(), $decimalLocation + 1); $lbSelected = ""; $unitSelected = ""; if(current($products)->getChargeByUnit()){ $unitSelected = "checked='checked'"; } elseif(current($products)->getChargeByPound()){ $lbSelected = "checked='checked'"; } $class = ""; if($index % 2 == 0){ $class = "class='stdcol1'"; } else { $class = "class='stdcol2'"; } echo("<tr><td $class align='left'>".current($products)->getId()."</td>"); echo(" <td $class align='left'><input type='text' name='".current($products)->getId()."productName' size='20' value='".current($products)->getName()."'>"); echo("<br>$optionSelect</td>"); echo("<td $class align='left'><input type='text' name='".current($products)->getId()."dollars' size='1' value='".$dollars."'>.<input type='text' name='".current($products)->getId()."cents' size='1' value='".$cents."'>". "<br><input type='radio' name='".current($products)->getId()."priceBy' value='lb' $lbSelected> /lb". "<br><input type='radio' name='".current($products)->getId()."priceBy' value='unit' $unitSelected> /unit</td>"); echo("<td $class align='left'><textarea type='text' name='".current($products)->getId()."description' rows='3' cols='30'>".current($products)->getDescription()."</textarea></td>"); if(!$new){ echo("<td $class align='center'><input type='checkbox' name='".current($products)->getId()."delete' value='Y'></td></tr>"); } next($products); } if(!$new){ echo("<tr><td colspan='3' align='center'><input type='submit' name='submitbutton' value='Update Products'></td><td colspan='3' align='right'><input type='submit' name='submitbutton' value='Delete Selected'></td></tr>"); } else{ echo("<tr><td colspan='5' align='center'><input type='submit' name='submitbutton' value='Create Product'></td></tr>"); } ?> </form> </table> <?PHP } function outputMassEmailForm(){ ?> <table class='productlistresultsheader' align='center' width='600' border='0' cellpadding='2' cellspacing='1'> <form class='productlist' method='POST' action='maintain.php?action=<?PHP echo($this->action)?>' name='emailForm'> <tr> <td> <font color="#FF0000"> <a> <?PHP //echo warning messages echo($this->emailMSG); ?> </a> </font> </td> </tr> <tr> <th class='stdcol3'>Send notification to email list subscribers</th> </tr> <tr> <td class='stdcol3'> <B><A>Recipients:</A></B> <A>General List</A><input type='checkbox' name='notifyGeneral' value='Y' <?PHP if($this->notifyGeneral == 'Y'){echo("checked");} ?>> <A>Market List</A><input type='checkbox' name='notifyMarket' value='Y' <?PHP if($this->notifyMarket == 'Y'){echo("checked");} ?>> <A>CSA List</A><input type='checkbox' name='notifyCSA' value='Y' <?PHP if($this->notifyCSA == 'Y'){echo("checked");} ?>> </td> </tr> <tr> <td class='stdcol3'> <B><A>Subject:</A></B> <input type='text' name='subject' size='80' value='<?PHP echo($this->subject); ?>'> </td> </tr> <tr> <td class='stdcol3'> <B><A>Title:</A></B> <input type='text' name='title' size='80' value='<?PHP echo($this->title); ?>'> </td> </tr> <tr> <td class='stdcol3'> <B><A>Body:</A></B><br> <textarea type='text' name='body' rows='15' cols='70'><?PHP echo($this->body); ?></textarea> </td> </tr> <tr> <td class='stdcol3' align="center"> <input type='submit' name='submitbutton' value='Preview Email'> </td> </tr> </form> </table> <?PHP } function notifcationForm() { ?> <table class='productlistresultsheader' align='center' width='600' border='0' cellpadding='2' cellspacing='1'> <form class='productlist' method='POST' action='maintain.php?action=<?PHP echo($this->action)?>' name='emailForm'> <tr> <td> <font color="#FF0000"> <a> <?PHP //echo warning messages echo($this->notificationMSG); ?> </a> </font> </td> </tr> <tr> <th class='stdcol3'>Update Notification text displayed on site</th> </tr> <tr> <td class='stdcol3'> <B><A>Notification Text: </A></B><a>(max length of 150 characters)</a><br> <textarea type='text' name='notificationText' rows='10' cols='50'><?PHP echo($this->notification); ?></textarea> </td> </tr> <tr> <td class='stdcol3' align="center"> <input type='submit' name='submitbutton' value='Update Notification'> </td> </tr> <tr> <td class='stdcol3' align="center"> <B><A>Previous Notification Text:</A></B><br> <a><?PHP echo($tihs->previousNotification); ?></a> </td> </tr> </form> </table> <?PHP } } ?>
© 2017 -
ZeroByte.ID
.