Exemplo n.º 1
0
 /**
  * Creates a message if form has been submitted or renders the creation/update form
  */
 public function actionCreate()
 {
     if (isset($_POST['Message'])) {
         $resp = array('color' => '#FF6600', 'background_color' => '#FFFFCC', 'position' => 'top', 'removebutton' => 0);
         $model = new Message();
         $model->setAttributes($_POST['Message']);
         if ($model->save()) {
             $resp['message'] = Yii::t('translate', 'Message successfully saved');
             $resp['id'] = $model->id;
         } else {
             $errors = $this->errors($model);
             $resp['message'] = Yii::t('translate', '<p>Unable to save the message. Something went wrong!<p/>' . implode('<br/>', $errors));
         }
         echo $this->je($resp);
         Yii::app()->end();
     }
     $id = (int) Yii::app()->request->getParam('id');
     $lang = Yii::app()->request->getParam('lang');
     if ($id && $lang) {
         $model = MessageSource::model()->findByPk($id);
         if ($model) {
             $message = $model->loadMessage();
             $message->id = $model->id;
             $message->language = $lang;
             $this->renderPartial('form', array('model' => $message));
         } else {
             throw new CHttpException(400);
         }
     } else {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
 }
Exemplo n.º 2
0
 public function create()
 {
     $uid = Auth::user()->id;
     $message = new Message();
     $message->title = Input::get('title');
     $message->body = Input::get('body');
     $message->mass_message = 0;
     $message->author_id = $uid;
     if (Input::get('recipient') != null) {
         $recipient = DB::table('users')->where('email', '=', Input::get('recipient'))->first();
         $message->recipient_id = $recipient->id;
     } else {
         $message->recipient_id = null;
     }
     $message->save();
     if (Input::get('recipient') != null) {
         $email = Input::get('recipient');
         $username = $recipient->email;
         $body = Input::get('body');
         $data = ['username' => $username, 'body' => $body];
         Mail::send('emails.adminmessage', $data, function ($message) {
             $message->to(Input::get('recipient'), 'test')->subject(Input::get('title'));
         });
     }
     return Redirect::to('/user/messages');
 }
Exemplo n.º 3
0
 /**
  * Creates a new model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  */
 public function actionCreate()
 {
     $model = new Lecture();
     if (isset($_POST['Lecture'])) {
         $model->attributes = $_POST['Lecture'];
         if (empty($model->owner_by)) {
             $model->owner_by = Yii::app()->user->getId();
         }
         if ($model->save()) {
             if (!Yii::app()->user->checkAccess('adminLecture')) {
                 $model->is_active = 0;
                 $adminUserIds = Yii::app()->db->createCommand()->select('userid')->from('authassignment')->where('itemname=:itemname', array(':itemname' => 'admin'))->queryColumn();
                 foreach ($adminUserIds as $id) {
                     $message = new Message();
                     $message->id_from = Yii::app()->user->getId();
                     $message->id_user = $id;
                     $message->subject = 'A new lecture is created';
                     $message->message = "User " . CHtml::link($this->viewer->username, $this->createUrl('account/view', array('id' => $this->viewer->getPrimaryKey()))) . " have just created the lecture " . CHtml::link($model->title, $this->createUrl('lecture/view', array('id' => $model->getPrimaryKey())));
                     $message->save();
                 }
             }
             $this->redirect(array('view', 'id' => $model->id));
         }
         //            $model->fileIntro = $file = CUploadedFile::getInstance($model, 'fileIntro');
         //            if ($model->validate(array('fileIntro'))) {
         //                if ($file) {
         //                    $fileName = Yii::app()->params['video'] . '/' . $file->getName();
         //                    if (file_exists($fileName)) {
         //                        $fileName = Yii::app()->params['video'] . '/'
         //                                . time() . '_' . $file->getName();
         //                    }
         //                    if ($file->saveAs(strtolower($fileName), true)) {
         //                        /* $videoHelper = new CVideo();
         //                          $videoThumbnailName = $videoHelper->create_thumbnail($fileName,
         //                          Yii::app()->params['videoWidth'],
         //                          Yii::app()->params['videoHeight'],
         //                          Yii::app()->params['videoThumbnail']
         //                          );
         //                          $convertVideoFileName = $videoHelper->convertVideo($fileName);
         //
         //                          $model->path_video_intro = $convertVideoFileName;
         //                          $model->path_video_thumbnail = $videoThumbnailName; */
         //                        $model->path_video_intro = $fileName;
         //                        $model->path_video_thumbnail = Yii::app()->params['defaultLectureThumbnail'];
         //                    }
         //                }
         //                if ($model->save()) {
         //                    $this->redirect(array('view', 'id' => $model->id));
         //                }
         //            }
     }
     $params = $this->getActionParams();
     if ($params && array_key_exists('idCategory', $params)) {
         $model->id_category = (int) $params['idCategory'];
     }
     if (Yii::app()->user->checkAccess('adminLecture')) {
         $model->is_active = 1;
     }
     $this->render('create', array('model' => $model));
 }
Exemplo n.º 4
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     //
     $interactor = new CurlInteractor();
     $interactor->setResponseFactory(new SlackResponseFactory());
     $commander = new Commander($_ENV['SLACK_KEY'], $interactor);
     $channels = Channel::where('is_member', true)->get();
     foreach ($channels as $channel) {
         $latest = $channel->latest ?: 0;
         do {
             $response = $commander->execute('channels.history', ['channel' => $channel->sid, 'oldest' => $latest, 'count' => 1000]);
             $responseBody = $response->getBody();
             foreach ($responseBody['messages'] as $msg) {
                 $latest = $msg['ts'] > $latest ? $msg['ts'] : $latest;
                 $message = new Message();
                 foreach ($msg as $k => $v) {
                     $message->{$k} = is_string($v) ? $v : (object) $v;
                 }
                 $message->channel = $channel->sid;
                 $message->save();
             }
         } while ($responseBody['has_more']);
         $channel->latest = $latest;
         $channel->save();
     }
 }
 public function actionCompose($id = null)
 {
     $message = new Message();
     if (Yii::app()->request->getPost('Message')) {
         $receiverName = Yii::app()->request->getPost('receiver');
         $message->attributes = Yii::app()->request->getPost('Message');
         $message->sender_id = Yii::app()->user->getId();
         if ($message->save()) {
             Yii::app()->user->setFlash('messageModule', MessageModule::t('Message has been sent'));
             $this->redirect($this->createUrl('inbox/'));
         } else {
             if ($message->hasErrors('receiver_id')) {
                 $message->receiver_id = null;
                 $receiverName = '';
             }
         }
     } else {
         if ($id) {
             $receiver = call_user_func(array(call_user_func(array(Yii::app()->getModule('message')->userModel, 'model')), 'findByPk'), $id);
             if ($receiver) {
                 $receiverName = call_user_func(array($receiver, Yii::app()->getModule('message')->getNameMethod));
                 $message->receiver_id = $receiver->id;
             }
         }
     }
     $this->render(Yii::app()->getModule('message')->viewPath . '/compose', array('model' => $message, 'receiverName' => isset($receiverName) ? $receiverName : null));
 }
Exemplo n.º 6
0
 /**
  * Creates a new model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  */
 public function actionCreate()
 {
     if (isset($_POST['Message'])) {
         $toUsers = explode(',', $_POST['toUsers']);
         $arrUserIds = array();
         foreach ($toUsers as $toUser) {
             $username = trim(strtok(trim($toUser), '-'));
             $user = Account::model()->findByAttributes(array('username' => $username));
             if ($user && $user->getPrimaryKey() != $this->viewer->getPrimaryKey()) {
                 $arrUserIds = array_merge($arrUserIds, array($user->getPrimaryKey()));
             }
         }
         if (!empty($arrUserIds)) {
             foreach ($arrUserIds as $userId) {
                 $model = new Message();
                 $model->subject = $_POST['Message']['subject'];
                 $model->message = $_POST['Message']['message'];
                 $model->id_from = $this->viewer->getPrimaryKey();
                 $model->id_user = $userId;
                 $model->save();
             }
         }
         Yii::app()->user->setFlash('message', Yii::t('flexiblearn', 'Your message is sent successfully !!!'));
         $this->redirect(array('manage'));
     }
     Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/jquery.autocomplete-min.js');
     Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/stylesheet/autocomplete.css');
     $this->render('create', array('model' => new Message()));
 }
Exemplo n.º 7
0
 /**
  * Send a Message populated with at least the following required fields:
  *   recipientId
  *   subject
  *   body
  * The following fields are optional:
  *   senderId may be null to indicate that it is a message from the system
  *   petListingId should be populated if the message pertains to a
  *     particular PetListing.
  * The other data fields of the message will be initialized automatically.
  * 
  * @param Message $message the Message to send
  */
 public function sendMessage($message)
 {
     $message->dateSent = Message::$objects->formatDateTime(new DateTime());
     $message->read = false;
     $message->save();
     // FIXME: If the user is subscribed to email notifications,
     // call emailMessage($message)
 }
Exemplo n.º 8
0
 public function addMessage($message, $type = Message::TYPE_INFO, $senderId = null)
 {
     $model = new Message();
     $model->text = $message;
     $model->type = $type;
     $model->date = time();
     $model->sender = $senderId;
     $model->save(false);
 }
Exemplo n.º 9
0
 public function actionSend($username = null, $reply = null, $selfReply = null)
 {
     $user = new User();
     $model = new Message();
     $message = null;
     $users = array();
     $models = User::model()->findAll(array('condition' => 'FK_usertype = 1'));
     foreach ($models as $aUser) {
         $users[] = array('label' => CHtml::image($aUser->image_url, '', array('width' => '20px')) . '  ' . $aUser->first_name . ' ' . $aUser->last_name, 'value' => "\"" . $aUser->first_name . " " . $aUser->last_name . "\" <" . $aUser->username . ">");
     }
     if (isset($_POST['Message'])) {
         $model->attributes = $_POST['Message'];
         $model->FK_sender = Yii::app()->user->name;
         date_default_timezone_set('America/New_York');
         $model->date = date('Y-m-d H:i:s');
         $model->userImage = $model->fKSender->image_url;
         $model->subject = $_POST['Message']['subject'];
         $receivers = $this->getReceivers($_POST["receiver"]);
         $receiverCount = count($receivers);
         for ($i = 0; $i < $receiverCount; $i++) {
             $model->FK_receiver = $receivers[$i];
             if (User::model()->find("username=:username", array(':username' => $model->FK_receiver)) != null) {
                 $model->save();
             }
             $model = new Message();
             $model->attributes = $_POST['Message'];
             $model->FK_sender = Yii::app()->user->name;
             $model->date = date('Y-m-d H:i:s');
             $model->userImage = $model->fKSender->image_url;
             $model->subject = $_POST['Message']['subject'];
         }
         User::sendUserNotificationMessageAlart(Yii::app()->user->id, $model->FK_receiver, 'http://' . Yii::app()->request->getServerName() . '/JobFair/index.php/message', 3);
         $link = CHtml::link('here', 'http://' . Yii::app()->request->getServerName() . '/JobFair/index.php/message');
         $recive = User::model()->find("username=:username", array(':username' => $model->FK_receiver));
         if ($recive != NULL) {
             $message = "You just got a message from {$model->FK_sender}<br/> '{$model->message}'<br/> Access the message {$link}";
             //$html = User::replaceMessage($recive->username, $message);
             User::sendEmail($recive->email, "Virtual Job Fair Message", "Message from Virtual Job Fair", $message);
             //User::sendEmailMessageNotificationAlart($recive->email, $recive->username, $model->FK_sender, $message);
         }
         $this->redirect("/JobFair/index.php/message");
         return;
     }
     if ($reply != null) {
         $message = Message::model()->findByPK($reply);
         if (Yii::app()->user->name == $message->FK_sender) {
             $username = $message->FK_receiver;
         } else {
             $username = $message->FK_sender;
         }
         $model->subject = $message->subject;
         $model->message = "\n\n\nOn " . $message->date . ", " . $message->FK_sender . " wrote:\n" . $message->message;
     }
     $this->render('send', array('user' => $user, 'users' => $users, 'model' => $model, 'username' => $username));
 }
Exemplo n.º 10
0
 public function createAdmin(Request $request)
 {
     $this->validate($request, ['recipient' => 'required', 'content' => 'required']);
     $message = new Message();
     $message->sender_id = 1;
     $message->recipient_id = $request->input('recipient');
     $message->content = $request->input('content');
     $message->read = 0;
     $message->save();
     return $this->response();
 }
Exemplo n.º 11
0
function add_message()
{
	global $CONF;
	$user = $_SESSION['user'];

	if ($user->getBanned()>0){
		return array('ok'=>false, 'error'=>'banned '.$user->getBanned());
	}

	if (isset($_SESSION['message_last_flood_time'])){

		if ((time() - $_SESSION['message_last_flood_time']) < $CONF['message_time_to_wait_flood']){
			$time_to_wait = $CONF['message_time_to_wait_flood'] - (time() - $_SESSION['message_last_flood_time']);
			return array('ok'=>false, 'error'=>'flood '.$time_to_wait);
		}

	}

	$_SESSION['message_last_flood_time']=time();

	$user = $_SESSION['user'];
	$userto=new RegUser();
	if (isset($_POST['user_to_id'])) $userto->setId($_POST['user_to_id']);
	elseif (isset($_POST['user_to_email'])) $userto->setEmail($_POST['user_to_email']);
	elseif (isset($_POST['user_to_nickname'])) $userto->setNickname($_POST['user_to_nickname']);
	else return array('ok'=>false, 'error'=>'undefined user to send');

	$message = new Message();

	$message->setUserFrom($user);
	$message->setUserTo($userto);

	$subject = strip_tags($_POST['subject']);
	if (strlen(str_replace(' ', '', $subject)) < $CONF['min_msg_chars'])
		return array('ok'=>false, 'error'=>'too short subject');
	$message->setSubject($subject);

	$msg = unescape_ampersand($_POST['msg']);
	if (strlen(str_replace(' ', '', strip_tags($msg))) < $CONF['min_msg_chars'])
		return array('ok'=>false, 'error'=>'too short message');

	$msg = strip_tags($msg, $CONF['permitted_tags_msg']);
	//$msg = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","<a target=\"_BLANK\" href=\"\\0\">\\0</a>", $msg); //detectando URLs
	$msg = text_linkify($msg);
	$msg = str_replace('&nbsp;',' ',$msg);
	$message->setMsg($msg);

	$result = $message->save();
	if ($result=='ok'){
		return array('ok'=>true, 'error'=>'');
	}
	else
		return array('ok'=>false, 'error'=>'problems with this message: '.$result);
}
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     //
     $input = Input::all();
     $message = new Message();
     $message->from = $input['fromuser'];
     $message->to = $input['touser'];
     $message->message = $input['message'];
     $message->save();
     return Redirect::action('MessageController@show', array('id' => Input::get('touser')));
 }
Exemplo n.º 13
0
 public function actionNewmessage()
 {
     $message = new Message();
     if (isset($_POST['Message'])) {
         $message->attributes = $_POST['Message'];
         if ($message->save()) {
             $this->redirect(array('messages', 'id' => $message->id));
         }
     }
     $this->render('Newmessage', array('message' => $message));
 }
Exemplo n.º 14
0
 public function add()
 {
     $user = $this->getUser();
     if (RequestMethods::post("share")) {
         $message = new Message(array("body" => RequestMethods::post("body"), "message" => RequestMethods::post("message"), "user" => $user['id']));
         if ($message->validate()) {
             $message->save();
             $this->redirect('/');
         }
     }
 }
Exemplo n.º 15
0
 public function insertDummyData()
 {
     for ($i = 0; $i < 100; $i++) {
         $new_mess = new Message();
         $new_mess->from = "huy" . $i;
         $new_mess->to = "dummy" . $i;
         $new_mess->message = "test" . $i;
         $new_mess->sent_date = date('m/d/Y h:i:s');
         $new_mess->save(FALSE);
     }
 }
Exemplo n.º 16
0
 public function addMessageToDB($messageText, $type_id = 0)
 {
     try {
         $message = new Message();
         $message->message = $messageText;
         $message->type_id = $type_id;
         $message->save();
     } catch (Exception $e) {
         return array(false, -100);
     }
     return array(true, $message->id);
 }
Exemplo n.º 17
0
function followchannel($channelid){

	if ($_SESSION['user']->isAnon())
		return array("ok"=>false, "error"=>"you have to login");

	global $LANGALL;
	global $CONF;

	$channel = new Channel();
	if (!isset($channelid))
		return array("ok"=>false, "error"=>"no id");
	$channel->setId($channelid);
	if ($channel->getAsktofollow()){
		if ($_SESSION['user']->isAnon())
			return array("ok"=>false, "error"=>"anon cant follow");

		require_once('class/Message.php');
		$message = new Message();
		$message->setUserFrom($_SESSION['user']);
		$message->setUserTo($channel->getUser());

		$__ufid = $channel->unconfirmed_follow();
		$check=hash('sha512',"00`Θ^*' ♣  hk".chr(11)."1".$__ufid);

		if ($channel->getUser()->getLang()=='pt_br'){
			$message->setSubject($LANGALL['pt_br']['channel_asktofollow_subject']);
			eval($LANGALL['pt_br']['channel_asktofollow_msg']);
			$msg = '#'.$channel->getName().'\n<br/>'.'@'.$_SESSION['user']->getNickname().'\n<br/>'.$body;
			if (isset($_GET['msg_followchannel']))
				$msg.=$_GET['msg_followchannel'];
			$message->setMsg($msg);
		} else {
			$message->setSubject($LANGALL['en_us']['channel_asktofollow_subject']);
			eval($LANGALL['pt_br']['channel_asktofollow_msg']);
			$msg = '#'.$channel->getName().'\n<br/>'.'@'.$_SESSION['user']->getNickname().'\n<br/>'.$body;
			if (isset($_GET['msg_followchannel']))
				$msg.=$_GET['msg_followchannel'];
			$message->setMsg($msg);
		}
		$result=$message->save();
		if ($result=='ok')
			return array("ok"=>false, "error"=>"asked for permission", "msg"=>"asked for permission");
		else
			return array("ok"=>false, "error"=>"error cant send message: ".$result, "msg"=>"");
		
	} else {
		if ($channel->follow())
			return array("ok"=>true, "error"=>"");
		else
			return array("ok"=>false, "error"=>"cant follow");
	}

}
Exemplo n.º 18
0
 public function postCreate()
 {
     $validator = Validator::make(Input::all(), Message::$rules);
     if ($validator->passes()) {
         $message = new Message();
         $message->title = Input::get('title');
         $message->body = Input::get('body');
         $message->save();
         return Redirect::to('messages/index')->with('message', 'Feedback Created');
     }
     return Redirect::to('messages/formcreate')->with('message', 'Something went wrong')->withErrors($validator)->withInput();
 }
Exemplo n.º 19
0
 public function makeSimpleCopy($owner_id, $folder = 'sent')
 {
     $message = new Message();
     $message->setSenderId($this->getSenderId());
     $message->setOwnerId($owner_id);
     $message->setRecipientId($this->getRecipientId());
     $message->setParentId($this->getParentId());
     $message->setSubject($this->getSubject());
     $message->setBody($this->getBody());
     $message->setHtmlBody($this->getBody());
     $message->setFolder($folder);
     $message->save();
 }
Exemplo n.º 20
0
 public function actionIndex()
 {
     // $this->render('index');
     $model = new Message();
     $user = !Yii::app()->user->isGuest ? Yii::app()->user->name : 'Guest';
     if (isset($_POST['message'])) {
         $model->message = $_POST['message'];
         $model->username = $user;
         $model->save();
     }
     $message_list = $model->getLast15();
     $this->render('index', array('message_list' => $message_list, 'user' => $user));
 }
Exemplo n.º 21
0
 public function actionSavestylesheet()
 {
     $languages = Message::getLanguages();
     $model = new Message();
     $model->language = $_POST['language'];
     $model->file = $_POST['file'];
     $model->messageId = $_POST['message-id'];
     $model->message = $_POST['message-content'];
     $model->save();
     $files = Message::getFiles($_POST['language']);
     Yii::app()->user->setFlash('success', Yii::t('AdminModule.messages', 'common.changessaved'));
     $this->render('edit', array('languages' => $languages, 'files' => $files, 'language' => $model->language, 'file' => $model->file, 'message' => $model->message, 'messageId' => $model->messageId));
 }
Exemplo n.º 22
0
 /**
  * Creates a new model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  */
 public function actionCreate()
 {
     $model = new Message();
     // Uncomment the following line if AJAX validation is needed
     // $this->performAjaxValidation($model);
     if (isset($_POST['Message'])) {
         $model->attributes = $_POST['Message'];
         if ($model->save()) {
             $this->redirect(array('view', 'id' => $model->id));
         }
     }
     $this->render('create', array('model' => $model));
 }
 /**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionCreate($id, $language)
 {
     $model = new Message('create');
     $model->id = $id;
     $model->language = $language;
     if (isset($_POST['Message'])) {
         $model->attributes = $_POST['Message'];
         if ($model->save()) {
             $this->redirect(array('missing'));
         }
     }
     $this->render('form', array('model' => $model));
 }
Exemplo n.º 24
0
 public function actionTranslate()
 {
     $lang = 'th';
     $list = array('diary' => 'บันทึกประจำวัน', 'sales' => 'ขายสินค้า', 'selling_products_via_phone' => 'ขายสินค้า (หน้าจอโทรศัพท์)', 'returns' => 'รับคืนสินค้า', 'the_bill_sale' => 'จัดบิลขาย', 'product_repair' => 'ซ่อมแซมสินค้า', 'repairing_the_product_from_the_outside' => 'รับซ่อมสินค้าจากภายนอก', 'get_product' => 'รับเข้าสินค้า', 'billing' => 'ใบวางบิล', 'quotation' => 'ใบเสนอราคา', 'check_stock' => 'เช็คสต็อก', 'change_password' => 'เปลี่ยนรหัสผ่าน', 'screensaver' => 'พักหน้าจอ', 'selling_today' => ' รายการขาย ณ ปัจจุบัน', 'start_a_new' => 'เริ่มขายใหม่', 'complete_sale' => 'จบการขาย', 'tax' => 'ภาษี', 'divestment_conditions' => 'เงื่อนไขกาารขาย', 'guarantee' => 'รับประกัน', 'information_bill' => 'ข้อมูลบิล', 'frequent_product_sales' => 'รายการขายสินค้าบ่อย', 'the_product_is_out_of_stock' => 'สินค้าจะหมดสต็อก', 'branch' => 'สาขา', 'members' => 'สมาชิก', 'product_code' => 'รหัสสินค้า', 'number' => 'จำนวน', 'record' => 'บันทึก', 'sequence' => 'ลำดับ', 'the_turn_brought_the_numbers' => 'serial number', 'name_sale' => 'ชื่อรายขาย', 'price' => 'ราคา', 'number_of_units' => 'จำนวนต่อหน่วย', 'sum' => 'รวม', 'prices_donot_include_taxes' => 'ราคาไม่รวมภาษี', 'total' => 'รวมทั้งสิ้น', 'recent_sales' => 'รายการขายล่าสุด', 'invoice' => 'ใบส่งสินค้า', 'tax_invoice' => 'ใบกำกับภาษี', 'invoice_summary' => 'ใบกำกับภาษีอย่างย่อ', 'slip' => 'ใบสลิป', 'receipt' => 'ใบเสร็จ', 'date_of_transaction' => 'วันเวลาที่ทำรายการ', 'all' => 'ทั้งหมด', 'receive_money' => 'รับเงิน', 'discount' => 'ส่วนลด', 'refund' => 'เงินทอน', 'list' => 'รายการ', 'barcode' => 'บาร์โค้ด', 'code_bill' => 'รหัสบิล', 'lists' => 'แสดงรายการ', 'management_bill_edit_undo' => 'จัดการบิล [แก้ไข, ยกเลิก]', 'members_shop' => 'สมาชิก / ร้าน', 'sales_person' => 'สถานะบิล', 'remove_all_discarded_bill' => 'ลบบิลทั้งหมด', 'paid' => 'ชำระแล้ว', 'sales_management_bill' => 'การจัดการบิลขาย', 'product_repairs' => 'การซ่อมแซมสินค้า', 'repair' => 'รับซ่อม', 'id_code' => 'รหัสโค้ด', 'cereals' => 'ซีเรียล', 'save' => 'บันทึกรายการ', 'receipt_printer_repair' => 'พิมพ์ใบรับซ่อม', 'print_your_receipt' => 'พิมพ์ใบเสร็จรับเงิน', 'complete_repair_work' => 'จบงานซ่อม', 'cancel' => 'ยกเลิกรายการ', 'search' => 'ค้นหา', 'id_barcode' => 'รหัส/บาร์โค้ด', 'customers' => 'ลูกค้า', 'recipients_of_repair' => 'ผู้รับเรื่องซ่อม', 'service_fees' => 'ค่าบริการ', 'causes_of_death' => 'สาเหตุการเสีย', 'type_repair' => 'ประเภทการซ่อม', 'self_repair' => 'ซ่อมเอง', 'transport_centre' => 'ส่งศูนย์', 'external_repair' => 'ส่งซ่อมภายนอก', 'product' => 'สินค้า', 'contact' => 'เบอร์โทรติดต่อ', 'problem_symptoms' => 'ปัญหา/อาการ', 'operations' => 'การดำเนินการ', 'Status' => 'สถานะ', 'wait_repair' => 'รอการซ่อม', 'repair_processing' => 'กำลังดำเนินการซ่อม', 'repairs_completed' => 'ส่งซ่อมภายนอก', 'get_into_the_field' => 'รับเข้าที่สาขา', 'purchased_from' => 'ซื้อมาจาก', 'payment' => 'การชำระเงิน', 'payment_date' => 'วันที่ชำระเงิน', 'notes' => 'หมายเหตุ', 'date_received' => 'วันที่รับเข้า', 'input_from_the_field' => 'รับเข้าจากสาขา', 'pending_payment' => 'รอชำระ', 'cash' => 'เงินสด', 'credit' => 'เงินเชื่อ', 'print_invoices' => 'พิมพ์ใบวางบิล', 'by_date' => 'จากวันที่', 'up_to_date' => 'ถึงวันที่', 'all_states' => 'ทุกสถานะ', 'no_billing' => 'ยังไม่วางบิล', 'billing_and_wait_payment' => 'วางบิลแล้วรอชำระ', 'paid_the_bill' => 'วางแล้วบิลแล้ว ชำระแล้ว', 'get_bill' => 'รับบิล', 'bill_cancel' => 'ยกเลิกบิล', 'removing_the_bill_out' => 'ลบบิลออกจากระบบ', 'start_a_new_item' => 'เริ่มรายการใหม่', 'print_quotations' => 'พิมพ์ใบเสนอราคา', 'quotation_no' => 'เลขใบเสนอราคา', 'customer_list' => 'ชื่อลูกค้า', 'address' => 'ที่อยู่', 'phone_number' => 'เบอร์โทร', 'fax' => 'แฟกซ์', 'no_taxpayers' => 'เลขผู้เสียภาษี', 'price_per_unit' => 'ราคาหน่วยละ', 'amount_of_money' => 'จำนวนเงิน', 'select_product' => 'เลือกรายการสินค้า', 'trade_value_percentage' => 'มูลค่าสินค้า (เปอร์เซ็น).', 'total_price' => 'รวมเป็นเงิน', 'net' => 'สุทธิ', 'price_filed' => 'ยื่นราคา', 'day' => 'วัน', 'bidder' => 'ผู้เสนอราคา', 'due_within' => 'กำหนดส่งของภายใน', 'since_the_signing_of_the_contract' => 'นับตั้งแต่วันที่ลงนามในสัญญา', 'sign' => 'ลงชื่อ', 'terms_of_payment' => 'เงื่อนไขในการชำระเงิน', 'the_agreed_price' => 'ผู้ตกลงราคา', 'check_stock' => 'ตรวจสอบสต๊อก', 'edit_profile' => 'แก้ไขข้อมูลส่วนตัว', 'reported_earnings_loss' => 'รายงาน กำไร-ขาดทุน', 'income' => 'รายได้', 'no_information' => 'ยังไม่มีข้อมูล', 'expenses' => 'ค่า่ใช้จ่าย', 'profit' => 'กำไร', 'daily_sales' => 'ยอดขายประจำวัน', 'daily_sales_report' => 'รายงานยอดขายประจำวัน', 'select_store' => 'เลือกสาขา', 'choose_the_date' => 'เลือกวันที่', 'to' => 'ถึง', 'discount' => 'มีส่วนลด', 'no_discounts' => 'ไม่มีส่วนลด', 'show_report' => 'แสดงรายงาน', 'the_sales_by_date' => 'สรุปยอดขายตามวัน', 'daily_sales_report' => 'รายงานยอดขายตามวัน', 'select_month' => 'เลือกเดือน', 'select_year' => 'เลือกปี', 'summary_of_sales_by_month' => 'สรุปยอดขายตามเดือน', 'monthly_sales_Report' => 'รายงานยอดขายตามเดือน', 'month' => 'เดือน', 'january' => 'มกราคม', 'february' => 'ถุมภาพันธ์', 'march' => 'มีนาคม', 'april' => 'เมษายน', 'may' => 'พฤษภาคม', 'june' => 'มิถุนายน', 'july' => 'กรกฎาคม', 'august' => 'สิงหาคม', 'september' => 'กันยายน', 'october' => 'ตุลาคม', 'november' => 'พฤษจิกายน', 'december' => 'ธันวาคม', 'summary_of_sales_by_category' => 'สรุปยอดขายตามประเภท', 'sales_reports_by_category' => 'รายงานยอดขายตามประเภท', 'no' => 'ลำดับที่', 'category' => 'ประเทภ', 'the_entire_balance' => 'สรุปยอดเงินทั้งหมด', 'the_sales_by_members' => 'สรุปยอดขายตามสมาชิก', 'sales_reports_by_member' => 'รายงานยอดขายตามสมาชิก', 'circulation' => 'ยอดขาย', 'score' => 'คะเเนน', 'the_sales_staff' => 'สรุปยอดขายตามพนักงาน', 'sales_staff_report' => 'รายงานยอดขายตามพนักงาน', 'all_reports' => 'รายงานสินค้าทั้งหมด', 'reports' => 'รายงาน', 'product_name' => 'ชื่อสินค้า', 'remaining_number' => 'จำนวนคงเหลือ', 'number_of_packages' => 'จำนวนคงเหลือต่อแพค', 'remaining_number_pack' => 'จำนวนคงเหลือ(แพ็ค)', 'retail_price' => 'ราคาปลีก', 'wholesale_price' => 'ราคาส่ง', 'report_inventories_in_stock' => 'รายงานสินค้าคงเหลือในสต็อก', 'reports_out_of_stock_inventories' => 'รายงานสินค้าคงเหลือหมดสต๊อก', 'debtor_reports' => 'รายงานลูกหนี้', 'date_of_transaction' => 'วันที่ทำรายการ', 'creditors_report' => 'รายงานเจ้าหนี้', 'publisher' => 'ชื่อผู้จัดจำหน่าย', 'total_debt' => 'หนี้รวม', 'promotional' => 'กำหนดการขาย', 'discount' => 'ส่วนลด', 'calculate_and_record_discounts' => 'คำนวนและบันทึกส่วนลด', 'discounted_prices_down_again' => 'ลดราคาจำหน่ายลงอีก', 'discount_formats' => 'รูปแบบส่วนลด', 'baht' => 'บาท', 'percent' => 'เปอร์เซ็น', 'the_idea_discounts' => 'จุดที่คิดส่วนลด', 'both' => 'ทั้งสอง', 'cost_average' => 'ราคาทุน (เฉลี่ย)', 'x_amount_of_thb_point' => 'จำนวนเงิน X บาท = 1 แต้ม', 'basic_settings' => 'ตั้งค่าพื้นฐาน', 'store_information' => 'ข้อมูลร้านค้า', 'warehouse_store' => 'คลังสินค้า/สาขา', 'category' => 'ประเภทสินค้า', 'agent' => 'ตัวแทนจำหน่าย', 'member' => 'สมาชิกร้าน', 'user_login' => 'ผู้ใช้ระบบ', 'today_the_money_in_the_drawer' => 'เงินในลิ้นชักวันนี้', 'distribution_of_income' => 'ประเภทรายจ่าย', 'expenditure_records' => 'บันทึกรายจ่าย', 'print_settings_bill' => 'ตั้งค่าการพิมพ์บิล', 'bill_and_its_minimum_setting' => 'ตั้งค่าบิลและสินค้าขั้นต่ำ', 'set_time' => 'ตั้งค่าเวลาเครื่อง', 'set_conditions_of_sale' => 'ตั้งค่าเงื่อนไขในการขาย', 'connection_settings_cash_drawer' => 'ตั้งค่าการเชื่อมต่อลิ้นชักเก็บเงิน', 'data_store_company' => 'ข้อมูลรา้น/ บริษัท', 'data_store_company_england.' => 'ข้อมูลร้าน/บริษัท(อังกฤษ).', 'our_logo' => 'โลโก้ของร้าน', 'address_line_one' => 'ที่อยู่บรรทัด 1', 'address_line_two' => 'ที่อยู่บรรทัด 2', 'address_line_three' => 'ที่อยู่บรรทัด 3', 'address_line_four' => 'ที่อยู่บรรทัด4', 'tax_identification_number' => 'เลขประจำตัวผู้เสียภาษี', 'id' => 'ไอดี', 'name_warehouse_store' => 'ชื่อคลังสินค้า/ สาขา', 'email' => 'อีเมลล์', 'save_the_date' => 'วันที่บันทึก', 'add' => 'เพิ่มรายการ', 'information_catalog' => 'ข้อมูลประเภทสินค้า', 'category_code' => 'รหัสประเภทสินค้า', 'name_category' => 'ชื่อประเภทสินค้า', 'more_details' => 'รายละเอียดเพิ่มเติม', 'product_info' => 'ข้อมูลสินค้า', 'often_sellers' => 'สินค้าขายบ่อย', 'all_product' => 'สินค้าทั้งหมด', 'import_from_excel_files' => 'นำเข้าจากไฟล์ Excel', 'package_code' => 'รหัสแพค', 'store_information' => 'ข้อมูลร้านค้า', 'code' => 'รหัส', 'user_login' => 'ข้อมูลผู้ใช้ระบบ', 'degree' => 'ระดับ', 'the_amount_of_today' => 'จำนวนเงินวันนี้', 'expenditure_type' => 'ประเภทรายจ่าย', 'name_type' => 'ชื่อประเภท', 'edit' => 'แก้ไข', 'delete' => 'ลบ', 'expenditure' => 'รายจ่าย', 'sizing_bill' => 'กำหนดขนาดบิล', 'named_bill' => 'ชื่อบิล', 'text_size_px' => 'ขนาดตัวหนังสือ(px)', 'width' => 'ความกว้าง', 'height' => 'ความสูง', 'a4' => 'A4', 'a5' => 'A5', 'vertical' => 'แนวตั้ง', 'horizontal' => 'แนวนอน', 'line_display' => 'แสดงเส้น', 'minimum_stocks' => 'สต๊อกขั้นต่ำ', 'slip_the_bill' => 'หัวบิล สลิป', 'delivery_creek_bill' => 'หัวบิลใบส่งสินค้า', 'the_head_tax_bill' => 'หัวบิลใบกำกับภาษี', 'bill_heads_receipts' => 'หัวบิลใบเสร็จรับเงิน', 'head_billing_bill' => 'หัวบิลใบวางบิลบ', 'number_of_items_per_page' => 'จำนวนรายการต่อหน้า', 'note_the_bill' => 'หมายเหตุท้ายบิล', 'note_the_shipping_bill' => 'หมายเหตุท้ายบิลใบส่งสินค้า', 'the_final_tax_bill' => 'หมายเหตุท้ายบิลใบกำกับภาษี', 'note_the_receipt_slips' => 'หมายเหตุท้ายบิลใบเสร็จรับเงิน', 'note_the_billing_bill' => 'หมายเหตุท้ายบิลใบวางบิล', 'time_settings' => 'ตั้งค่าเวลา', 'should_case_time_in_billings_not_only_with_the_times' => ' ควรตั้งเฉพาะกรณีที่ เวลาในใบออกบิล ไม่ตรงกับเวลาเครื่องเท่านั้น', 'set_hours' => 'ตั้งค่าชั่วโมง', 'employees_can_fix_prices' => 'ให้พนักงานแก้ไขราคาจำหน่ายได้', 'the_salesperson_representing_a_discount' => 'ให้พนักงานขายคิดส่วนลดได้', 'out_of_stock_for_sale' => 'ขายสินค้าหมดสต๊อก', 'connection_settings_tongue_steal_money' => 'ตั้งค่าการเชื่อมต่อลิ้นชักเก็บเงิน', 'test_from_com1_com2_com3_COM4' => 'ทดสอบได้ตั้งแต่ COM1, COM2, COM3, COM4 ', 'check_for_update' => 'ตรวจสอบการอัพเดพ', 'please_enter_data' => 'โปรดป้อนข้อมูลด้วย', 'select_members' => 'เลือกสมาชิกร้าน', 'confirm_delete' => ' ยืนยันการลบ', 'add_billings' => 'เพิ่มใบวางบิล', 'the_balance' => 'จำนวนยอด', 'get_the_goods_on_the_bill' => 'รับเข้าสินค้าในบิล', 'viewing' => 'แสดงข้อมูล', 'purchase_price' => 'ราคาซื้อ', 'all_admission' => 'รับเข้าทั้งหมด', 'the_total_amount' => 'จำนวนเงินรวม', 'all_quotations' => 'ใบเสนอราคาทั้งหมด', 'standing' => 'ยืนราคา', 'list_of_Bills' => 'รายการในบิล', 'selling_amendment_bill' => 'แก้ไขรายการขาย บิล', 'the_recipient' => 'เลือกผู้รับเรื่อง', 'save_list' => 'บันทึกรายการแล้ว', 'no_searches' => 'ไม่พบรายการที่ค้นหา', 'please_enter_a_keyword' => 'โปรดป้อนคำค้นด้วย', 'please_indicate_Barcode_first' => 'โปรดระบุรหัสสินค้า/Barcode ก่อน', 'cancellation_repair_work' => 'ยกเลิกงานซ่อม', 'remove_items' => 'ลบรายการแล้ว', 'confirmation_of_finished_repair_work' => 'ยืนยันการจบงานซ่อม', 'complete_repaired' => 'จบการซ่อมแล้ว', 'the_recipient' => 'ผู้รับเรื่อง', 'date_repair' => 'วันที่เริ่มซ่อม', 'the_cause_symptoms' => 'สาเหตุอาการเสีย', 'in_progress' => 'กำลังดำเนินการ', 'choose_list' => 'เลือกรายการ', 'Choose' => 'เลือก', 'product_selection' => 'เลือกสินค้า', 'record_returns' => 'บันทึกรับคืนสินค้า', 'confirmation_total_bill' => 'ยืนยันการลบบิลทั้งหมด', 'dear' => 'เรียนคุณ', 'i_am' => 'ข้าพเจ้า', 'i_offer_the_following_list_of_parcels' => 'ขอเสนอราคาพัสดุดังรายการต่อไปนี้', 'per_unit' => 'หน่วยละ', 'balance' => 'คงเหลือ', 'totaling' => 'รวมเป็นเงินทั้งสิ้น', 'term_of_payment' => 'เงื่อนไขการชำระเงิน', 'this_product_is_out_insurance' => 'สินค้านี้หมดประกันแล้ว', 'insurance_products_are_also_in' => 'สินค้ายังอยู่ในประกัน', 'general_information' => 'ข้อมูลทั่วไป', 'this_product_is_not_classified_tnformation_category_is_deleted' => 'ยังไม่ได้จัดกลุ่มให้สินค้านี้ / ข้อมูลหมวดสินค้านี้ถูกลบ.', 'full_service_history' => 'ประวัติการซ่อม', 'open_view' => 'เปิดดู', 'repair_information_product_number' => 'ข้อมูลการรับซ่อมสินค้าหมายเลข', 'sale_date' => 'วันที่จำหน่าย', 'date_insurance' => 'วันที่เริ่มประกัน', 'day_out_insurance' => 'วันหมดประกัน', 'product_warranty' => 'Product warranty', 'day_out_insurance' => 'Day out insurance', 'prices_do_not_include_vat' => 'Prices do not include VAT', 'delete_list' => 'Delete List', 'the_repair_order_number_serial' => 'The repair order number Serial.', 'product_value' => 'มูลค่าสินค้า', 'vat_percent' => 'ภาษีมูลค่าเพิ่ม (%)', 'search_results' => 'ผลการค้นหา', 'date' => 'วันที่', 'management_bill_edit_undo' => 'จัดการบิล [แก้ไข, ยกเลิก]', 'phone' => 'โทรศัพท์', 'repair_information' => 'ข้อมูลการซ่อม', 'please_select_clients_to_save_the_debtors' => 'โปรดทำการเลือกลูกค้า เพื่อบันทึกเป็นลูกหนี้', 'final_sales_are_not_paid_in_cash_completed' => 'จบการขายแบบไม่ได้ชำระเป็นเงินสด เรียบร้อยแล้ว', 'sinceyou_have_not_yet_entered_the_field_Please_branches_before' => 'เนื่องจากคุณยังไม่ได้ป้อนสาขา โปรดระบุสาขาก่อน', 'think_vat' => 'คิด VAT', 'did_vat' => 'ไม่คิด VAT', 'thinking_vat' => 'การคิด VAT', 'if_the_program_does_not_count_Keep_repeating_this_cycle' => 'ถ้าโปรแกรมไม่คำนวน ให้กดซ้ำอีกรอบ', 'sales_model' => 'รูปแบบการขาย', 'auto_sales' => 'ขายอัตโนมัติ', 'bethe_first_number' => 'กำหนดจำนวนก่อน', 'product_warranty' => 'รับประกันสินค้า', 'day_out_insurance' => 'วันหมดประกัน', 'prices_do_not_include_VAT' => 'ราคาไม่รวม VAT', 'delete_list' => 'ลบรายการ', 'the_repair_order_number_serial' => 'บันทึกการรับซ่อมสินค้าหมายเลข Serial', 'date_insurance' => 'วันที่เริ่มประกัน', 'number_of_packages' => 'จำนวนต่อแพค', 'product_value' => 'มูลค่าสินค้า', 'conditions_of_sale' => 'เงื่อนไขการขาย', 'wholesale' => 'ขายส่ง', 'customer_data_non_members' => 'ข้อมูลลูกค้า (ที่ไม่ใช่สมาชิกร้าน)', 'vat_set' => 'กำหนด Vat', 'name' => 'ชื่อ', 'atomatic_code generation' => 'สร้างรหัสอัตโนมัติ', 'weight_g' => 'น้ำหนักสินค้า (กรัม)', 'product_images' => 'ภาพสินค้า', 'supported_file_formats_Jpg_png_only' => 'รองรับไฟล์ .jpg .png เท่านั้น', 'fresh_products' => 'สินค้าสด', 'fresh_notproducts' => 'สินค้าไม่สด', 'sales_immediately' => 'ขายได้ทันที', 'determine_the_number_of_first_time' => 'กำหนดจำนวนก่อนทุกครั้ง', 'our_products' => 'สินค้าของร้าน', 'consignment' => 'สินค้าฝากขาย', 'record_Price_completed' => 'บันทึกราคาขาย เรียบร้อยแล้ว', 'the_number_of_pieces_start_from' => 'จำนวนชิ้น (ตั้งแต่)', 'the_number_of_pieces_to' => 'จำนวนชิ้น (ถึง)', 'unit_price_retail_price' => 'ราคาต่อหน่วย (ราคาปลีก)', 'unit_price_wholesale _price' => 'ราคาต่อหน่วย (ราคาส่ง)', 'in_the_case_of_multi_level_sellers' => 'ใช้ในกรณีสินค้าขายได้หลายระดับ', 'starting_from_pac_code_onwards' => 'เริ่มต้นจากรหัส แพค เป็นต้นไป', 'cost_price' => 'ราคาทุน', 'price' => 'ราคาจำหน่าย', 'nickname_crates_packages_dozen' => 'ชื่อเรียก (ลัง, แพค, โหล)', 'the_amount_to_be_cut_with_the_sec' => 'จำนวนที่จะตัดสต้อก', 'about_the_program' => 'เกี่ยวกับโปรแกรม', 'retail_management_system_to_mini_mart_in_any_form' => 'ระบบบริหารงานร้านค้าปลีก ส่ง มินิมาร์ท ทุกรูปแบบ', 'designed_and_developed_by_Design_Studio_co_pingpongsof_by_mir_tavon_srisenpila' => 'ออกแบบและพัฒนาโดออกแบบและพัฒนาโดย บ.ปิงปองซอฟต์ (คุณถาวร ศรีเสนพิลา)', 'tel_ooo_ooo_oooo_mail_thekaroe_hotmail_com' => 'โทร. 086 877 6053, mail: thekaroe@hotmail.com', 'sales_slip' => 'สลิปการขาย', 'data_warehouse_store' => 'บันทึกข้อมูล คลังสินค้า/สาขา', 'now_with_the_new_version_is_already_up' => 'ขณะนี้มี version ใหม่มาแล้ว อัพเป็นรุ่น ', 'click_here_to_update' => 'กดที่นี่เพื่ออัพเดต', 'set_conditions_of_Sale' => 'ตั้งค่า เงื่อนไขการขาย', 'stock_is_sold_out' => 'ขายสินค้าหมดสต็อคได้', 'test_the_com1_com2_com3_com4' => '* ทดสอบได้ตั้งแต่ COM1, COM2, COM3, COM4', 'the_minimum_posthumously' => 'สต้อกขั้นต่ำ', 'note_the_bill_slip' => 'หมายเหตุท้ายบิล สลิป', 'the_bill_delivery' => 'หัวบิล ใบส่งสินค้า', 'note_the_shipping_bill' => 'หมายเหตุท้ายบิล ใบส่งสินค้า', 'the_head_tax_bill' => 'หัวบิล ใบกำกับภาษี', 'the_final_tax_bill' => 'หมายเหตุท้ายบิล ใบกำกับภาษี', 'bill_heads_receipts' => 'หัวบิล ใบเสร็จรับเงิน', 'note_the_bill_receipt' => 'หมายเหตุท้ายบิล ใบเสร็จรับเงิน', 'head_billing_Bill' => 'หมายเหตุท้ายบิล ใบเสร็จรับเงิน', 'note_the_billing_bill' => 'หมายเหตุท้ายบิล ใบวางบิล', 'save_dealer' => 'บันทึกรายการ ตัวแทนจำหน่าย', 'recording_product_type' => 'บันทึกรายการ ประเภทสินค้า', 'record_store_information' => 'บันทึกข้อมูล', 'code_generation' => 'สร้างรหัส', 'if_your_branch_is_based_on_the_employee_s_login_id_field' => '* ถ้าไม่เลือกสาขา จะยึดตามรหัสสาขาของพนักงานที่เข้าระบบ', 'data_store_company' => 'ข้อมูลร้าน / บริษัท', 'show_logo_on_the_bill' => 'แสดงโลโก้บนบิล', 'logo_on_the_header' => 'แสดงโลโก้บนส่วนหัว', 'background_color_on_the_head' => 'แสดงสีพื้นหลัง (บนหัว)', 'complete_list' => 'กรอกรายการใหม่', 'please_set_the_barcode_goods' => 'โปรดทำการกำหนด barcode สินค้าก่อน', 'price_discrimination_based_on_barcodes' => 'ราคาจำหน่าย แยกตามบาร์โค้ด', 'barcode_printing' => 'พิมพ์บาร์โค้ด', 'cost_price' => 'ราคาทุน', 'selling_price' => 'ราคาขาย', 'select_the_file_from_excel' => 'เลือกไฟล์จาก Excel', 'the_exact_information_will_be_sorted_below' => '*รูปแบบข้อมูลจะต้องเรียงดังนี้', 'for_example_data_in_excel_example_product_csv_do_not_need_a_top_but_the_only_information' => 'ตัวอย่างข้อมูลใน excel (example-product.csv) ไม่ต้องมีหัวด้านบน ให้มีแต่ข้อมูลเท่านั้น', 'select_a_file_to_import_click_here_file_extension_csv_only' => 'เลือกไฟล์เพื่อนำเข้า กดที่นี่ (ไฟล์นามสกุล .csv เท่านั้น)', 'import_from_excel_files' => 'นำเข้าจากไฟล์ Excel', 'data_user_system' => 'บันทึกข้อมูล ผู้ใช้งานระบบ', 'user_information_system' => 'ข้อมูลผู้ใช้งานระบบ', 'report' => 'รายงาน', 'confirm_save' => 'ยืนยันการบันทึก', 'bill_no' => 'เลขที่บิล', 'store' => 'ร้าน', 'unit_price' => 'ราคาต่อหน่วย', 'type_vat' => 'ประเภท vat', 'before_that_summit' => 'ยอดก่อนคิด', 'value_added_tax_vat' => 'ภาษีมูลค่าเพิ่ม (Vat) 7%', 'net_balance' => 'ยอดสุทธิ', 'reciever' => 'ผู้รับของ', 'forwarder' => 'ผู้ส่งของ', 'inspector' => 'ผู้ตรวจสอบ', 'print' => 'พิมพ์', 'confirm_the_update_software' => 'ยืนยันการ Update Software', 'sun' => 'อา', 'mon' => 'จ', 'tue' => 'อ', 'wed' => 'พ', 'thu' => 'พฤ', 'fri' => 'ศ', 'sat' => 'ส', 'successfully_update_version' => 'update version เรียบร้อย', 'retail_management_system_sends_all_its_forms' => 'ระบบบริหารงานร้านค้าปลีก ส่ง ทุกรูปแบบ', 'type_of_costs' => 'เลือกประเภทค่าใช้จ่าย', 'expenditure_records' => 'บันทึก รายจ่าย', 'cost_type' => 'ประเภทค่าใช้จ่าย', 'item_name' => 'ชื่อรายการ', 'add_expense_category' => 'เพิ่มรายการ : ประเภทรายจ่าย', 'confirmation_list' => 'ยืนยันการลบรายการ', 'fully_to_pay' => 'จ่ายพอดี', 'the_amount_to_be_paid' => 'ยอดเงินที่ต้องชำระ', 'gross_weight_g' => 'นำหนักรวม (กรัม)', 'shipper' => 'ผู้ส่งสินค้า', 'sales_person' => 'พนักงานขาย', 'reciever' => 'ผู้รับสินค้า', 'reported_earnings_loss' => 'รายงานกำไร - ขาดทุน', 'loss' => 'ขาดทุน', 'repair_bill' => 'ใบรับซ่อม', 'no_leaves_repair' => 'เลขที่ใบซ่อม', 'receipts_for_repairs' => 'ใบเสร็จรับเงิน ค่าซ่อม', 'out_of_the_sec_report' => 'รายงานสินค้า หมดสต้อก', 'ordering_information_of_the_debtor' => 'ข้อมูลการสั่งซื้อของลูกหนี้', 'since_information' => 'แสดงข้อมูลตั้งแต่', 'data_rom' => 'จากข้อมูล', 'print_report' => 'พิมพ์รายงาน', 'export_to_excel' => 'ส่งออกเป็น Excel', 'actual_distribution' => 'จำหน่ายจริง', 'fund' => 'ทุน', 'earnings_per_piece' => 'กำไรต่อชิ้น', 'total_profit' => 'กำไรรวม', 'catalog' => 'รายการสินค้า', 'sales_today' => 'ยอดขายวันนี้', 'profit_today' => 'กำไรวันนี้', 'total_cash_drawer' => 'รวมเงินในลิ้นชัก', 'no_data_in_the_report_show' => 'ไม่มีข้อมูลในการแสดงรายงาน', 'daily_sales_report' => 'รายงานยอดขายวัน', 'vat_format' => 'รูปแบบ vat', 'sales_report' => 'รายงานยอดขาย', 'member_code' => 'รหัสสมาชิก', 'year' => 'ปี', 'su' => 'อา.', 'mo' => 'จ.', 'tu' => 'อ.', 'we' => 'พ.', 'th' => 'พฤ.', 'fr' => 'ศ.', 'sa' => 'ส.', 'report_inventories_in_stock' => 'รายงานสินค้า คงเหลือในสต้อก', 'promotional' => 'ส่งเสริมการขาย', 'set_points' => 'กำหนดคะแนนสะสม', 'code_box' => 'รหัสกล่อง', 'number_of_visitors' => 'จำนวนที่รับเข้า', 'the_actual_number_of_admission' => 'จำนวนที่รับเข้าจริง', 'date_paid_received_the_bill' => 'วันที่ชำระเงิน/รับบิล', 'the_billing_date' => 'วันที่วางบิล', 'price_vat' => 'ราคา vat', 'name_warehouse_store' => 'ชื่อคลังสินค้า/สาขา', 'not_selected' => 'ไม่เลือกรายการ', 'save_the_date' => 'วันที่บันทึกรายการ', 'last_update' => 'วันที่แก้ไขล่าสุด', 'members_shop' => 'ชื่อสมาชิก/ร้าน', 'statistics_branch' => 'สาขาที่สมัคร', 'name_company' => 'ชื่อร้าน/บริษัท', 'name_company_en' => 'ชื่อร้าน/บริษัท (อังกฤษ)', 'package_code' => 'รหัสแพค', 'product_type' => 'ชนิดสินค้า', 'its_expiration_date' => 'วันหมดอายุสินค้า', 'product_serial' => 'serial สินค้า', 'package_price' => 'ราคาต่อแพค', 'maintenance_staff' => 'พนักงานที่รับซ่อม', 'dates_repair' => 'วันที่รับซ่อม', 'dates_night' => 'วันที่รับคืน', 'the_repaired' => 'วันที่ซ่อมเสร็จ', 'delivery_date_clemson' => 'วันที่ส่งเคลม', 'a_pick_up_order' => 'ผู้มารับสินค้า', 'barcode_products' => 'Barcode สินค้า', 'repairs_completed' => 'ซ่อมเสร็จแล้ว', 'type' => 'ประเภท', 'point' => 'คะแนน', 'value' => 'ค่า', 'show_product_name' => 'แสดงชื่อสินค้า', 'show_product_price' => 'แสดงราคาจำหน่าย', 'show_wholesale_price' => 'แสดงราคาส่ง', 'create_barcode' => 'สร้างบาร์โค้ด', 'size' => 'ขนาด', 'columns' => 'คอลัมน์', 'rows' => 'แถว', 'alignment' => 'ตำแหน่งอักษร', 'left' => 'ซ้าย', 'center' => 'กลาง', 'right' => 'ขวา', 'show_info' => 'แสดงรายละเอียด');
     $s = Sourcemessage::model()->findAll("ID NOT IN(SELECT ID FROM MESSAGE WHERE LANGUAGE = :lang)", array(":lang" => 'th'));
     foreach ($s as $r) {
         $m = new Message();
         $m->id = $r->id;
         $m->language = $lang;
         $m->translation = isset($list[$r->message]) ? $list[$r->message] : "";
         $m->save();
         echo $m->translation . "<br>";
     }
 }
 public function actionSend($username = null, $reply = null, $selfReply = null)
 {
     $user = new User();
     $model = new Message();
     $message = null;
     $users = array();
     $models = User::model()->findAll();
     foreach ($models as $aUser) {
         $users[] = array('label' => CHtml::image($aUser->pic_url, '', array('width' => '20px')) . '  ' . $aUser->fname . ' ' . $aUser->lname, 'value' => "\"" . $aUser->fname . " " . $aUser->lname . "\" <" . $aUser->username . ">");
     }
     if (isset($_POST['Message'])) {
         $model->attributes = $_POST['Message'];
         $model->sender = Yii::app()->user->name;
         $model->created_date = date('Y-m-d H:i:s');
         $model->userImage = $model->sender0->pic_url;
         $model->subject = $_POST['Message']['subject'];
         $receivers = $this->getReceivers($_POST["receiver"]);
         $receiverCount = count($receivers);
         for ($i = 0; $i < $receiverCount; $i++) {
             $model->receiver = $receivers[$i];
             if (User::model()->find("username=:username", array(':username' => $model->receiver)) != null) {
                 $model->save();
             }
             User::addNewMessageNotification(Yii::app()->user->id, $model->receiver, 'http://' . Yii::app()->request->getServerName() . '/coplat/index.php/message', 3);
             if (User::model()->find("username=:username", array(':username' => $model->receiver)) != NULL) {
                 User::sendNewMessageEmailNotification($model->sender, $model->receiver, $model->message);
             }
             $model = new Message();
             $model->attributes = $_POST['Message'];
             $model->sender = Yii::app()->user->name;
             $model->created_date = date('Y-m-d H:i:s');
             $model->subject = $_POST['Message']['subject'];
         }
         $this->redirect("/coplat/index.php/message");
         return;
     }
     if ($reply != null) {
         $message = Message::model()->findByPK($reply);
         if (Yii::app()->user->name == $message->sender) {
             $username = $message->receiver;
         } else {
             $username = $message->sender;
         }
         $model->subject = $message->subject;
         $from = User::model()->find("username=:username", array(':username' => $message->sender));
         $model->message = "\n\n\nOn " . $message->created_date . ", " . $from->fname . " " . $from->lname . " wrote:\n" . $message->message;
     }
     $this->render('send', array('user' => $user, 'users' => $users, 'model' => $model, 'username' => $username));
 }
Exemplo n.º 26
0
 /**
  * Send a reply
  *
  * @param int 	$id
  * @return Response
  */
 public function reply($id)
 {
     //Validation
     $rules = array('message' => 'required');
     $validator = Validator::make(Input::all(), $rules);
     if ($validator->fails()) {
         return Redirect::to('/community/boards/create')->withInput()->withErrors($validator);
     }
     $message = new Message();
     $message->body = Input::get('message');
     $message->board_id = $id;
     $message->user_id = Auth::user()->id;
     $message->save();
     return Redirect::to('/community/boards/' . $id)->with('flash_message', 'Your message has been sent!')->with('alert_class', 'alert-success');
 }
Exemplo n.º 27
0
 public static function store($topic_id)
 {
     self::checkLoggedIn();
     self::verifyMembershipByTopicId($topic_id);
     $user_id = $_SESSION['user'];
     $params = $_POST;
     $message = new Message(array('message' => $params['message'], 'author' => $user_id, 'topic_id' => $topic_id));
     $errors = $message->errors();
     if (count($errors) == 0) {
         $message->save();
     } else {
         Redirect::to('/topics/' . $topic_id, array('errors' => $errors));
     }
     Redirect::to('/topics/' . $topic_id);
 }
Exemplo n.º 28
0
function sendMessageToGroup($id)
{
    $app = Slim\Slim::getInstance();
    $group = Group::findOrFail($id);
    $json = decodeJsonOrFail($app->request->getBody());
    if (!isset($json['from'])) {
        $json['from'] = null;
    }
    if (!isset($json['from_user_id'])) {
        $json['from_user_id'] = null;
    }
    $message = new Message($json);
    $message->group()->associate($group);
    $message->save();
    echo $message->toJson();
}
Exemplo n.º 29
0
 public static function sendMessage($typeName, $senderId, $receiverId, $title, $content, $sendTime = null, $status = 1)
 {
     $message = new Message();
     $message->typeId = MessageType::find("name", $typeName)->first()->id;
     $message->senderId = $senderId;
     $message->receiverId = $receiverId;
     $message->title = $title;
     $message->content = $content;
     $message->sendTime = $sendTime;
     $message->status = $status;
     if (!isset($message->sendTime) || $message->sendTime == '') {
         $message->sendTime = date('Y-m-d H:i:s');
     }
     $message->save();
     return $message;
 }
Exemplo n.º 30
0
 function testUniqueness()
 {
     $message = new Message(['title' => 'some title']);
     $message->validateWith(new \ORM\Validator\Uniqueness('title'));
     $this->assertTrue($message->isValid());
     $message->save();
     $this->assertTrue($message->isValid());
     $message = new Message(['title' => 'some title']);
     $validator = new \ORM\Validator\Uniqueness('title');
     $message->validateWith($validator);
     $this->assertFalse($message->isValid());
     $this->assertEquals('is not unique', $validator->getMessage());
     $message = new Message(['title' => 'some title1']);
     $message->validateWith(new \ORM\Validator\Uniqueness('title'));
     $this->assertTrue($message->isValid());
 }