24 if ($soxId !=
"-1" && isset($soxId)) {
25 $oOrder =
oxNew(
"oxorder");
26 $oOrder->load($soxId);
29 $oRems =
oxNew(
"oxlist");
30 $oRems->init(
"oxremark");
31 $sUserIdField =
'oxorder__oxuserid';
32 $sQuotedUserId =
oxDb::getDb()->quote($oOrder->$sUserIdField->value);
33 $sSelect =
"select * from oxremark where oxparentid=" . $sQuotedUserId .
" order by oxcreate desc";
34 $oRems->selectString($sSelect);
35 foreach ($oRems as $key => $val) {
36 if ($val->oxremark__oxid->value == $sRemoxId) {
43 $this->_aViewData[
"allremark"] = $oRems;
45 if (isset($sRemoxId)) {
46 $oRemark =
oxNew(
"oxRemark");
47 $oRemark->load($sRemoxId);
48 $this->_aViewData[
"remarktext"] = $oRemark->oxremark__oxtext->value;
49 $this->_aViewData[
"remarkheader"] = $oRemark->oxremark__oxheader->value;
53 return "order_remark.tpl";
63 $oOrder =
oxNew(
"oxorder");
64 if ($oOrder->load($this->getEditObjectId())) {
65 $oRemark =
oxNew(
"oxremark");
70 $oRemark->oxremark__oxtype =
new oxField(
"r");
71 $oRemark->oxremark__oxparentid =
new oxField($oOrder->oxorder__oxuserid->value);
79 public function delete()
81 $oRemark =
oxNew(
"oxRemark");